module PHaskellParser where
import PHaskellTypes
import Char

parseError :: [Token] -> a
parseError t  = error ("Parse error -> " ++ (show t))
				 


data Token
      = TokenInt String
      | TokenVar String
      | TokenBool String
      | TokenBinOp 
      | TokenEq
      | TokenPlus
      | TokenMinus
      | TokenTimes
      | TokenDiv
      | TokenOB
      | TokenCB
	  | TokenMin
	  | TokenMaj
	  | TokenMineq
	  | TokenMajeq
	  | TokenLEq
	  | TokenSep
	  | TokenData
	  | TokenTypeDef
	  | TokenArrow
	  | TokenTypeBool
	  | TokenTypeInt
	  | TokenMod
	  | TokenNotEq
	  | TokenNot
	  | TokenWhere
	  | TokenEnd
	  | TokenBackSlach
	  | TokenIf
	  | TokenThen
	  | TokenElse
	  | TokenGuard
 	  | TokenOtherwise
 	  | TokenOpenList
      | TokenCloseList
      | TokenListConstructor
      | TokenComma 
      | TokenUnknown
	  | TokenOr
	  | TokenAnd
	  | TokenAccess   
	  | TokenIfCexp   
	  | TokenDot   
	  | TokenOpenB   
	  | TokenCloseB  
	  | TokenArroba
	  | TokenString String
 deriving Show

-- parser produced by Happy Version 1.17

data HappyAbsSyn t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24
	= HappyTerminal Token
	| HappyErrorToken Int
	| HappyAbsSyn4 t4
	| HappyAbsSyn5 t5
	| HappyAbsSyn6 t6
	| HappyAbsSyn7 t7
	| HappyAbsSyn8 t8
	| HappyAbsSyn9 t9
	| HappyAbsSyn10 t10
	| HappyAbsSyn11 t11
	| HappyAbsSyn12 t12
	| HappyAbsSyn13 t13
	| HappyAbsSyn14 t14
	| HappyAbsSyn15 t15
	| HappyAbsSyn16 t16
	| HappyAbsSyn17 t17
	| HappyAbsSyn18 t18
	| HappyAbsSyn19 t19
	| HappyAbsSyn20 t20
	| HappyAbsSyn21 t21
	| HappyAbsSyn22 t22
	| HappyAbsSyn23 t23
	| HappyAbsSyn24 t24

action_0 (26) = happyShift action_5
action_0 (35) = happyShift action_9
action_0 (58) = happyShift action_6
action_0 (67) = happyShift action_7
action_0 (4) = happyGoto action_8
action_0 (5) = happyGoto action_2
action_0 (11) = happyGoto action_3
action_0 (17) = happyGoto action_4
action_0 _ = happyReduce_3

action_1 (26) = happyShift action_5
action_1 (58) = happyShift action_6
action_1 (67) = happyShift action_7
action_1 (5) = happyGoto action_2
action_1 (11) = happyGoto action_3
action_1 (17) = happyGoto action_4
action_1 _ = happyFail

action_2 (26) = happyShift action_5
action_2 (35) = happyShift action_9
action_2 (58) = happyShift action_6
action_2 (67) = happyShift action_7
action_2 (4) = happyGoto action_25
action_2 (5) = happyGoto action_2
action_2 (11) = happyGoto action_3
action_2 (17) = happyGoto action_4
action_2 _ = happyReduce_3

action_3 _ = happyReduce_4

action_4 _ = happyReduce_10

action_5 (25) = happyShift action_19
action_5 (26) = happyShift action_20
action_5 (28) = happyShift action_21
action_5 (30) = happyShift action_22
action_5 (41) = happyShift action_23
action_5 (59) = happyShift action_24
action_5 (14) = happyGoto action_17
action_5 (15) = happyGoto action_18
action_5 _ = happyReduce_57

action_6 (26) = happyShift action_16
action_6 _ = happyFail

action_7 (26) = happyShift action_13
action_7 (32) = happyShift action_14
action_7 (33) = happyShift action_15
action_7 (20) = happyGoto action_11
action_7 (21) = happyGoto action_12
action_7 _ = happyReduce_66

action_8 (70) = happyAccept
action_8 _ = happyFail

action_9 (26) = happyShift action_5
action_9 (35) = happyShift action_9
action_9 (58) = happyShift action_6
action_9 (67) = happyShift action_7
action_9 (4) = happyGoto action_10
action_9 (5) = happyGoto action_2
action_9 (11) = happyGoto action_3
action_9 (17) = happyGoto action_4
action_9 _ = happyReduce_3

action_10 _ = happyReduce_2

action_11 (68) = happyShift action_50
action_11 _ = happyFail

action_12 (26) = happyShift action_13
action_12 (32) = happyShift action_14
action_12 (33) = happyShift action_15
action_12 (62) = happyReduce_68
action_12 (68) = happyReduce_68
action_12 (20) = happyGoto action_49
action_12 (21) = happyGoto action_12
action_12 _ = happyReduce_68

action_13 _ = happyReduce_69

action_14 _ = happyReduce_71

action_15 _ = happyReduce_70

action_16 (36) = happyShift action_48
action_16 _ = happyFail

action_17 (25) = happyShift action_19
action_17 (26) = happyShift action_20
action_17 (28) = happyShift action_21
action_17 (41) = happyShift action_23
action_17 (59) = happyShift action_24
action_17 (14) = happyGoto action_17
action_17 (15) = happyGoto action_47
action_17 _ = happyReduce_57

action_18 (36) = happyShift action_45
action_18 (56) = happyShift action_46
action_18 (9) = happyGoto action_43
action_18 (10) = happyGoto action_44
action_18 _ = happyFail

action_19 _ = happyReduce_54

action_20 _ = happyReduce_56

action_21 _ = happyReduce_55

action_22 (26) = happyShift action_39
action_22 (32) = happyShift action_40
action_22 (33) = happyShift action_41
action_22 (41) = happyShift action_42
action_22 (12) = happyGoto action_38
action_22 _ = happyFail

action_23 (25) = happyShift action_19
action_23 (26) = happyShift action_20
action_23 (28) = happyShift action_21
action_23 (34) = happyShift action_31
action_23 (37) = happyShift action_32
action_23 (38) = happyShift action_33
action_23 (39) = happyShift action_34
action_23 (40) = happyShift action_35
action_23 (41) = happyShift action_23
action_23 (52) = happyShift action_36
action_23 (53) = happyShift action_37
action_23 (59) = happyShift action_24
action_23 (13) = happyGoto action_29
action_23 (14) = happyGoto action_30
action_23 _ = happyFail

action_24 (25) = happyShift action_19
action_24 (26) = happyShift action_20
action_24 (28) = happyShift action_21
action_24 (41) = happyShift action_23
action_24 (59) = happyShift action_24
action_24 (60) = happyShift action_28
action_24 (14) = happyGoto action_26
action_24 (16) = happyGoto action_27
action_24 _ = happyFail

action_25 _ = happyReduce_1

action_26 (62) = happyShift action_87
action_26 _ = happyReduce_59

action_27 (60) = happyShift action_86
action_27 _ = happyFail

action_28 _ = happyReduce_52

action_29 (25) = happyShift action_19
action_29 (26) = happyShift action_20
action_29 (27) = happyShift action_70
action_29 (28) = happyShift action_21
action_29 (37) = happyShift action_71
action_29 (38) = happyShift action_72
action_29 (39) = happyShift action_73
action_29 (40) = happyShift action_74
action_29 (41) = happyShift action_23
action_29 (42) = happyShift action_75
action_29 (43) = happyShift action_76
action_29 (44) = happyShift action_77
action_29 (45) = happyShift action_78
action_29 (46) = happyShift action_79
action_29 (47) = happyShift action_80
action_29 (48) = happyShift action_81
action_29 (49) = happyShift action_82
action_29 (59) = happyShift action_24
action_29 (61) = happyShift action_83
action_29 (63) = happyShift action_84
action_29 (64) = happyShift action_85
action_29 (14) = happyGoto action_69
action_29 _ = happyFail

action_30 _ = happyReduce_50

action_31 (25) = happyShift action_19
action_31 (26) = happyShift action_20
action_31 (28) = happyShift action_21
action_31 (34) = happyShift action_31
action_31 (37) = happyShift action_32
action_31 (38) = happyShift action_33
action_31 (39) = happyShift action_34
action_31 (40) = happyShift action_35
action_31 (41) = happyShift action_23
action_31 (52) = happyShift action_36
action_31 (53) = happyShift action_37
action_31 (59) = happyShift action_24
action_31 (13) = happyGoto action_68
action_31 (14) = happyGoto action_30
action_31 _ = happyFail

action_32 (25) = happyShift action_19
action_32 (26) = happyShift action_20
action_32 (28) = happyShift action_21
action_32 (34) = happyShift action_31
action_32 (37) = happyShift action_32
action_32 (38) = happyShift action_33
action_32 (39) = happyShift action_34
action_32 (40) = happyShift action_35
action_32 (41) = happyShift action_23
action_32 (52) = happyShift action_36
action_32 (53) = happyShift action_37
action_32 (59) = happyShift action_24
action_32 (13) = happyGoto action_67
action_32 (14) = happyGoto action_30
action_32 _ = happyFail

action_33 (25) = happyShift action_19
action_33 (26) = happyShift action_20
action_33 (28) = happyShift action_21
action_33 (34) = happyShift action_31
action_33 (37) = happyShift action_32
action_33 (38) = happyShift action_33
action_33 (39) = happyShift action_34
action_33 (40) = happyShift action_35
action_33 (41) = happyShift action_23
action_33 (52) = happyShift action_36
action_33 (53) = happyShift action_37
action_33 (59) = happyShift action_24
action_33 (13) = happyGoto action_66
action_33 (14) = happyGoto action_30
action_33 _ = happyFail

action_34 (25) = happyShift action_19
action_34 (26) = happyShift action_20
action_34 (28) = happyShift action_21
action_34 (34) = happyShift action_31
action_34 (37) = happyShift action_32
action_34 (38) = happyShift action_33
action_34 (39) = happyShift action_34
action_34 (40) = happyShift action_35
action_34 (41) = happyShift action_23
action_34 (52) = happyShift action_36
action_34 (53) = happyShift action_37
action_34 (59) = happyShift action_24
action_34 (13) = happyGoto action_65
action_34 (14) = happyGoto action_30
action_34 _ = happyFail

action_35 (25) = happyShift action_19
action_35 (26) = happyShift action_20
action_35 (28) = happyShift action_21
action_35 (34) = happyShift action_31
action_35 (37) = happyShift action_32
action_35 (38) = happyShift action_33
action_35 (39) = happyShift action_34
action_35 (40) = happyShift action_35
action_35 (41) = happyShift action_23
action_35 (52) = happyShift action_36
action_35 (53) = happyShift action_37
action_35 (59) = happyShift action_24
action_35 (13) = happyGoto action_64
action_35 (14) = happyGoto action_30
action_35 _ = happyFail

action_36 (25) = happyShift action_19
action_36 (26) = happyShift action_20
action_36 (28) = happyShift action_21
action_36 (34) = happyShift action_31
action_36 (37) = happyShift action_32
action_36 (38) = happyShift action_33
action_36 (39) = happyShift action_34
action_36 (40) = happyShift action_35
action_36 (41) = happyShift action_23
action_36 (52) = happyShift action_36
action_36 (53) = happyShift action_37
action_36 (59) = happyShift action_24
action_36 (13) = happyGoto action_63
action_36 (14) = happyGoto action_30
action_36 _ = happyFail

action_37 (25) = happyShift action_19
action_37 (26) = happyShift action_20
action_37 (28) = happyShift action_21
action_37 (34) = happyShift action_31
action_37 (37) = happyShift action_32
action_37 (38) = happyShift action_33
action_37 (39) = happyShift action_34
action_37 (40) = happyShift action_35
action_37 (41) = happyShift action_23
action_37 (52) = happyShift action_36
action_37 (53) = happyShift action_37
action_37 (59) = happyShift action_24
action_37 (13) = happyGoto action_62
action_37 (14) = happyGoto action_30
action_37 _ = happyFail

action_38 (31) = happyShift action_61
action_38 _ = happyReduce_20

action_39 _ = happyReduce_24

action_40 _ = happyReduce_21

action_41 _ = happyReduce_22

action_42 (26) = happyShift action_39
action_42 (32) = happyShift action_40
action_42 (33) = happyShift action_41
action_42 (41) = happyShift action_42
action_42 (12) = happyGoto action_60
action_42 _ = happyFail

action_43 (50) = happyShift action_59
action_43 _ = happyReduce_9

action_44 (56) = happyShift action_46
action_44 (9) = happyGoto action_58
action_44 (10) = happyGoto action_44
action_44 _ = happyReduce_17

action_45 (25) = happyShift action_19
action_45 (26) = happyShift action_20
action_45 (28) = happyShift action_21
action_45 (34) = happyShift action_31
action_45 (37) = happyShift action_32
action_45 (38) = happyShift action_33
action_45 (39) = happyShift action_34
action_45 (40) = happyShift action_35
action_45 (41) = happyShift action_23
action_45 (52) = happyShift action_36
action_45 (53) = happyShift action_37
action_45 (59) = happyShift action_24
action_45 (13) = happyGoto action_57
action_45 (14) = happyGoto action_30
action_45 _ = happyFail

action_46 (25) = happyShift action_19
action_46 (26) = happyShift action_20
action_46 (28) = happyShift action_21
action_46 (34) = happyShift action_31
action_46 (37) = happyShift action_32
action_46 (38) = happyShift action_33
action_46 (39) = happyShift action_34
action_46 (40) = happyShift action_35
action_46 (41) = happyShift action_23
action_46 (52) = happyShift action_36
action_46 (53) = happyShift action_37
action_46 (57) = happyShift action_56
action_46 (59) = happyShift action_24
action_46 (13) = happyGoto action_55
action_46 (14) = happyGoto action_30
action_46 _ = happyFail

action_47 _ = happyReduce_58

action_48 (26) = happyShift action_54
action_48 (6) = happyGoto action_52
action_48 (7) = happyGoto action_53
action_48 _ = happyFail

action_49 _ = happyReduce_67

action_50 (26) = happyShift action_51
action_50 _ = happyFail

action_51 (25) = happyShift action_19
action_51 (26) = happyShift action_20
action_51 (28) = happyShift action_21
action_51 (41) = happyShift action_23
action_51 (59) = happyShift action_24
action_51 (14) = happyGoto action_17
action_51 (15) = happyGoto action_115
action_51 _ = happyReduce_57

action_52 _ = happyReduce_5

action_53 (56) = happyShift action_114
action_53 _ = happyReduce_11

action_54 (26) = happyShift action_39
action_54 (32) = happyShift action_40
action_54 (33) = happyShift action_41
action_54 (41) = happyShift action_42
action_54 (8) = happyGoto action_112
action_54 (12) = happyGoto action_113
action_54 _ = happyReduce_14

action_55 (25) = happyShift action_19
action_55 (26) = happyShift action_20
action_55 (27) = happyShift action_70
action_55 (28) = happyShift action_21
action_55 (36) = happyShift action_111
action_55 (37) = happyShift action_71
action_55 (38) = happyShift action_72
action_55 (39) = happyShift action_73
action_55 (40) = happyShift action_74
action_55 (41) = happyShift action_23
action_55 (43) = happyShift action_76
action_55 (44) = happyShift action_77
action_55 (45) = happyShift action_78
action_55 (46) = happyShift action_79
action_55 (47) = happyShift action_80
action_55 (48) = happyShift action_81
action_55 (49) = happyShift action_82
action_55 (59) = happyShift action_24
action_55 (61) = happyShift action_83
action_55 (63) = happyShift action_84
action_55 (64) = happyShift action_85
action_55 (14) = happyGoto action_69
action_55 _ = happyFail

action_56 (36) = happyShift action_110
action_56 _ = happyFail

action_57 (25) = happyShift action_19
action_57 (26) = happyShift action_20
action_57 (27) = happyShift action_70
action_57 (28) = happyShift action_21
action_57 (37) = happyShift action_71
action_57 (38) = happyShift action_72
action_57 (39) = happyShift action_73
action_57 (40) = happyShift action_74
action_57 (41) = happyShift action_23
action_57 (43) = happyShift action_76
action_57 (44) = happyShift action_77
action_57 (45) = happyShift action_78
action_57 (46) = happyShift action_79
action_57 (47) = happyShift action_80
action_57 (48) = happyShift action_81
action_57 (49) = happyShift action_82
action_57 (50) = happyShift action_109
action_57 (59) = happyShift action_24
action_57 (61) = happyShift action_83
action_57 (63) = happyShift action_84
action_57 (64) = happyShift action_85
action_57 (14) = happyGoto action_69
action_57 _ = happyReduce_8

action_58 _ = happyReduce_16

action_59 (26) = happyShift action_5
action_59 (35) = happyShift action_9
action_59 (58) = happyShift action_6
action_59 (67) = happyShift action_7
action_59 (4) = happyGoto action_108
action_59 (5) = happyGoto action_2
action_59 (11) = happyGoto action_3
action_59 (17) = happyGoto action_4
action_59 _ = happyReduce_3

action_60 (31) = happyShift action_61
action_60 (42) = happyShift action_107
action_60 _ = happyFail

action_61 (26) = happyShift action_39
action_61 (32) = happyShift action_40
action_61 (33) = happyShift action_41
action_61 (41) = happyShift action_42
action_61 (12) = happyGoto action_106
action_61 _ = happyFail

action_62 (25) = happyShift action_19
action_62 (26) = happyShift action_20
action_62 (27) = happyShift action_70
action_62 (28) = happyShift action_21
action_62 (37) = happyShift action_71
action_62 (38) = happyShift action_72
action_62 (39) = happyShift action_73
action_62 (40) = happyShift action_74
action_62 (41) = happyShift action_23
action_62 (43) = happyShift action_76
action_62 (44) = happyShift action_77
action_62 (45) = happyShift action_78
action_62 (46) = happyShift action_79
action_62 (47) = happyShift action_80
action_62 (48) = happyShift action_81
action_62 (49) = happyShift action_82
action_62 (54) = happyShift action_105
action_62 (59) = happyShift action_24
action_62 (61) = happyShift action_83
action_62 (63) = happyShift action_84
action_62 (64) = happyShift action_85
action_62 (14) = happyGoto action_69
action_62 _ = happyFail

action_63 (25) = happyShift action_19
action_63 (26) = happyShift action_20
action_63 (27) = happyShift action_70
action_63 (28) = happyShift action_21
action_63 (30) = happyShift action_104
action_63 (37) = happyShift action_71
action_63 (38) = happyShift action_72
action_63 (39) = happyShift action_73
action_63 (40) = happyShift action_74
action_63 (41) = happyShift action_23
action_63 (43) = happyShift action_76
action_63 (44) = happyShift action_77
action_63 (45) = happyShift action_78
action_63 (46) = happyShift action_79
action_63 (47) = happyShift action_80
action_63 (48) = happyShift action_81
action_63 (49) = happyShift action_82
action_63 (59) = happyShift action_24
action_63 (61) = happyShift action_83
action_63 (63) = happyShift action_84
action_63 (64) = happyShift action_85
action_63 (14) = happyGoto action_69
action_63 _ = happyFail

action_64 (25) = happyShift action_19
action_64 (26) = happyShift action_20
action_64 (28) = happyShift action_21
action_64 (41) = happyShift action_23
action_64 (63) = happyShift action_84
action_64 (64) = happyShift action_85
action_64 (14) = happyGoto action_69
action_64 _ = happyReduce_44

action_65 (25) = happyShift action_19
action_65 (26) = happyShift action_20
action_65 (28) = happyShift action_21
action_65 (41) = happyShift action_23
action_65 (63) = happyShift action_84
action_65 (64) = happyShift action_85
action_65 (14) = happyGoto action_69
action_65 _ = happyReduce_43

action_66 (25) = happyShift action_19
action_66 (26) = happyShift action_20
action_66 (28) = happyShift action_21
action_66 (41) = happyShift action_23
action_66 (63) = happyShift action_84
action_66 (64) = happyShift action_85
action_66 (14) = happyGoto action_69
action_66 _ = happyReduce_41

action_67 (25) = happyShift action_19
action_67 (26) = happyShift action_20
action_67 (28) = happyShift action_21
action_67 (41) = happyShift action_23
action_67 (63) = happyShift action_84
action_67 (64) = happyShift action_85
action_67 (14) = happyGoto action_69
action_67 _ = happyReduce_42

action_68 (25) = happyShift action_19
action_68 (26) = happyShift action_20
action_68 (28) = happyShift action_21
action_68 (41) = happyShift action_23
action_68 (63) = happyShift action_84
action_68 (64) = happyShift action_85
action_68 (14) = happyGoto action_69
action_68 _ = happyReduce_40

action_69 _ = happyReduce_49

action_70 (26) = happyShift action_103
action_70 _ = happyFail

action_71 (25) = happyShift action_19
action_71 (26) = happyShift action_20
action_71 (28) = happyShift action_21
action_71 (34) = happyShift action_31
action_71 (37) = happyShift action_32
action_71 (38) = happyShift action_33
action_71 (39) = happyShift action_34
action_71 (40) = happyShift action_35
action_71 (41) = happyShift action_23
action_71 (52) = happyShift action_36
action_71 (53) = happyShift action_37
action_71 (59) = happyShift action_24
action_71 (13) = happyGoto action_102
action_71 (14) = happyGoto action_30
action_71 _ = happyFail

action_72 (25) = happyShift action_19
action_72 (26) = happyShift action_20
action_72 (28) = happyShift action_21
action_72 (34) = happyShift action_31
action_72 (37) = happyShift action_32
action_72 (38) = happyShift action_33
action_72 (39) = happyShift action_34
action_72 (40) = happyShift action_35
action_72 (41) = happyShift action_23
action_72 (52) = happyShift action_36
action_72 (53) = happyShift action_37
action_72 (59) = happyShift action_24
action_72 (13) = happyGoto action_101
action_72 (14) = happyGoto action_30
action_72 _ = happyFail

action_73 (25) = happyShift action_19
action_73 (26) = happyShift action_20
action_73 (28) = happyShift action_21
action_73 (34) = happyShift action_31
action_73 (37) = happyShift action_32
action_73 (38) = happyShift action_33
action_73 (39) = happyShift action_34
action_73 (40) = happyShift action_35
action_73 (41) = happyShift action_23
action_73 (52) = happyShift action_36
action_73 (53) = happyShift action_37
action_73 (59) = happyShift action_24
action_73 (13) = happyGoto action_100
action_73 (14) = happyGoto action_30
action_73 _ = happyFail

action_74 (25) = happyShift action_19
action_74 (26) = happyShift action_20
action_74 (28) = happyShift action_21
action_74 (34) = happyShift action_31
action_74 (37) = happyShift action_32
action_74 (38) = happyShift action_33
action_74 (39) = happyShift action_34
action_74 (40) = happyShift action_35
action_74 (41) = happyShift action_23
action_74 (52) = happyShift action_36
action_74 (53) = happyShift action_37
action_74 (59) = happyShift action_24
action_74 (13) = happyGoto action_99
action_74 (14) = happyGoto action_30
action_74 _ = happyFail

action_75 _ = happyReduce_51

action_76 (25) = happyShift action_19
action_76 (26) = happyShift action_20
action_76 (28) = happyShift action_21
action_76 (34) = happyShift action_31
action_76 (37) = happyShift action_32
action_76 (38) = happyShift action_33
action_76 (39) = happyShift action_34
action_76 (40) = happyShift action_35
action_76 (41) = happyShift action_23
action_76 (52) = happyShift action_36
action_76 (53) = happyShift action_37
action_76 (59) = happyShift action_24
action_76 (13) = happyGoto action_98
action_76 (14) = happyGoto action_30
action_76 _ = happyFail

action_77 (25) = happyShift action_19
action_77 (26) = happyShift action_20
action_77 (28) = happyShift action_21
action_77 (34) = happyShift action_31
action_77 (37) = happyShift action_32
action_77 (38) = happyShift action_33
action_77 (39) = happyShift action_34
action_77 (40) = happyShift action_35
action_77 (41) = happyShift action_23
action_77 (52) = happyShift action_36
action_77 (53) = happyShift action_37
action_77 (59) = happyShift action_24
action_77 (13) = happyGoto action_97
action_77 (14) = happyGoto action_30
action_77 _ = happyFail

action_78 (25) = happyShift action_19
action_78 (26) = happyShift action_20
action_78 (28) = happyShift action_21
action_78 (34) = happyShift action_31
action_78 (37) = happyShift action_32
action_78 (38) = happyShift action_33
action_78 (39) = happyShift action_34
action_78 (40) = happyShift action_35
action_78 (41) = happyShift action_23
action_78 (52) = happyShift action_36
action_78 (53) = happyShift action_37
action_78 (59) = happyShift action_24
action_78 (13) = happyGoto action_96
action_78 (14) = happyGoto action_30
action_78 _ = happyFail

action_79 (25) = happyShift action_19
action_79 (26) = happyShift action_20
action_79 (28) = happyShift action_21
action_79 (34) = happyShift action_31
action_79 (37) = happyShift action_32
action_79 (38) = happyShift action_33
action_79 (39) = happyShift action_34
action_79 (40) = happyShift action_35
action_79 (41) = happyShift action_23
action_79 (52) = happyShift action_36
action_79 (53) = happyShift action_37
action_79 (59) = happyShift action_24
action_79 (13) = happyGoto action_95
action_79 (14) = happyGoto action_30
action_79 _ = happyFail

action_80 (25) = happyShift action_19
action_80 (26) = happyShift action_20
action_80 (28) = happyShift action_21
action_80 (34) = happyShift action_31
action_80 (37) = happyShift action_32
action_80 (38) = happyShift action_33
action_80 (39) = happyShift action_34
action_80 (40) = happyShift action_35
action_80 (41) = happyShift action_23
action_80 (52) = happyShift action_36
action_80 (53) = happyShift action_37
action_80 (59) = happyShift action_24
action_80 (13) = happyGoto action_94
action_80 (14) = happyGoto action_30
action_80 _ = happyFail

action_81 (25) = happyShift action_19
action_81 (26) = happyShift action_20
action_81 (28) = happyShift action_21
action_81 (34) = happyShift action_31
action_81 (37) = happyShift action_32
action_81 (38) = happyShift action_33
action_81 (39) = happyShift action_34
action_81 (40) = happyShift action_35
action_81 (41) = happyShift action_23
action_81 (52) = happyShift action_36
action_81 (53) = happyShift action_37
action_81 (59) = happyShift action_24
action_81 (13) = happyGoto action_93
action_81 (14) = happyGoto action_30
action_81 _ = happyFail

action_82 (25) = happyShift action_19
action_82 (26) = happyShift action_20
action_82 (28) = happyShift action_21
action_82 (34) = happyShift action_31
action_82 (37) = happyShift action_32
action_82 (38) = happyShift action_33
action_82 (39) = happyShift action_34
action_82 (40) = happyShift action_35
action_82 (41) = happyShift action_23
action_82 (52) = happyShift action_36
action_82 (53) = happyShift action_37
action_82 (59) = happyShift action_24
action_82 (13) = happyGoto action_92
action_82 (14) = happyGoto action_30
action_82 _ = happyFail

action_83 (25) = happyShift action_19
action_83 (26) = happyShift action_20
action_83 (28) = happyShift action_21
action_83 (34) = happyShift action_31
action_83 (37) = happyShift action_32
action_83 (38) = happyShift action_33
action_83 (39) = happyShift action_34
action_83 (40) = happyShift action_35
action_83 (41) = happyShift action_23
action_83 (52) = happyShift action_36
action_83 (53) = happyShift action_37
action_83 (59) = happyShift action_24
action_83 (13) = happyGoto action_91
action_83 (14) = happyGoto action_30
action_83 _ = happyFail

action_84 (25) = happyShift action_19
action_84 (26) = happyShift action_20
action_84 (28) = happyShift action_21
action_84 (34) = happyShift action_31
action_84 (37) = happyShift action_32
action_84 (38) = happyShift action_33
action_84 (39) = happyShift action_34
action_84 (40) = happyShift action_35
action_84 (41) = happyShift action_23
action_84 (52) = happyShift action_36
action_84 (53) = happyShift action_37
action_84 (59) = happyShift action_24
action_84 (13) = happyGoto action_90
action_84 (14) = happyGoto action_30
action_84 _ = happyFail

action_85 (25) = happyShift action_19
action_85 (26) = happyShift action_20
action_85 (28) = happyShift action_21
action_85 (34) = happyShift action_31
action_85 (37) = happyShift action_32
action_85 (38) = happyShift action_33
action_85 (39) = happyShift action_34
action_85 (40) = happyShift action_35
action_85 (41) = happyShift action_23
action_85 (52) = happyShift action_36
action_85 (53) = happyShift action_37
action_85 (59) = happyShift action_24
action_85 (13) = happyGoto action_89
action_85 (14) = happyGoto action_30
action_85 _ = happyFail

action_86 _ = happyReduce_53

action_87 (25) = happyShift action_19
action_87 (26) = happyShift action_20
action_87 (28) = happyShift action_21
action_87 (41) = happyShift action_23
action_87 (59) = happyShift action_24
action_87 (14) = happyGoto action_26
action_87 (16) = happyGoto action_88
action_87 _ = happyFail

action_88 _ = happyReduce_60

action_89 (25) = happyShift action_19
action_89 (26) = happyShift action_20
action_89 (27) = happyShift action_70
action_89 (28) = happyShift action_21
action_89 (37) = happyShift action_71
action_89 (38) = happyShift action_72
action_89 (39) = happyShift action_73
action_89 (40) = happyShift action_74
action_89 (41) = happyShift action_23
action_89 (43) = happyShift action_76
action_89 (44) = happyShift action_77
action_89 (45) = happyShift action_78
action_89 (46) = happyShift action_79
action_89 (47) = happyShift action_80
action_89 (48) = happyShift action_81
action_89 (49) = happyShift action_82
action_89 (59) = happyShift action_24
action_89 (61) = happyShift action_83
action_89 (63) = happyShift action_84
action_89 (64) = happyShift action_85
action_89 (14) = happyGoto action_69
action_89 _ = happyReduce_36

action_90 (25) = happyShift action_19
action_90 (26) = happyShift action_20
action_90 (27) = happyShift action_70
action_90 (28) = happyShift action_21
action_90 (37) = happyShift action_71
action_90 (38) = happyShift action_72
action_90 (39) = happyShift action_73
action_90 (40) = happyShift action_74
action_90 (41) = happyShift action_23
action_90 (43) = happyShift action_76
action_90 (44) = happyShift action_77
action_90 (45) = happyShift action_78
action_90 (46) = happyShift action_79
action_90 (47) = happyShift action_80
action_90 (48) = happyShift action_81
action_90 (49) = happyShift action_82
action_90 (59) = happyShift action_24
action_90 (61) = happyShift action_83
action_90 (63) = happyShift action_84
action_90 (64) = happyShift action_85
action_90 (14) = happyGoto action_69
action_90 _ = happyReduce_35

action_91 (25) = happyShift action_19
action_91 (26) = happyShift action_20
action_91 (27) = happyShift action_70
action_91 (28) = happyShift action_21
action_91 (37) = happyShift action_71
action_91 (38) = happyShift action_72
action_91 (39) = happyShift action_73
action_91 (40) = happyShift action_74
action_91 (41) = happyShift action_23
action_91 (43) = happyShift action_76
action_91 (44) = happyShift action_77
action_91 (45) = happyShift action_78
action_91 (46) = happyShift action_79
action_91 (47) = happyShift action_80
action_91 (48) = happyShift action_81
action_91 (49) = happyShift action_82
action_91 (59) = happyShift action_24
action_91 (61) = happyShift action_83
action_91 (63) = happyShift action_84
action_91 (64) = happyShift action_85
action_91 (14) = happyGoto action_69
action_91 _ = happyReduce_48

action_92 (25) = happyShift action_19
action_92 (26) = happyShift action_20
action_92 (28) = happyShift action_21
action_92 (37) = happyShift action_71
action_92 (38) = happyShift action_72
action_92 (39) = happyShift action_73
action_92 (40) = happyShift action_74
action_92 (41) = happyShift action_23
action_92 (47) = happyShift action_80
action_92 (48) = happyShift action_81
action_92 (49) = happyShift action_82
action_92 (63) = happyShift action_84
action_92 (64) = happyShift action_85
action_92 (14) = happyGoto action_69
action_92 _ = happyReduce_38

action_93 (25) = happyShift action_19
action_93 (26) = happyShift action_20
action_93 (28) = happyShift action_21
action_93 (41) = happyShift action_23
action_93 (63) = happyShift action_84
action_93 (64) = happyShift action_85
action_93 (14) = happyGoto action_69
action_93 _ = happyReduce_37

action_94 (25) = happyShift action_19
action_94 (26) = happyShift action_20
action_94 (28) = happyShift action_21
action_94 (37) = happyShift action_71
action_94 (38) = happyShift action_72
action_94 (39) = happyShift action_73
action_94 (40) = happyShift action_74
action_94 (41) = happyShift action_23
action_94 (47) = happyShift action_80
action_94 (48) = happyShift action_81
action_94 (49) = happyShift action_82
action_94 (63) = happyShift action_84
action_94 (64) = happyShift action_85
action_94 (14) = happyGoto action_69
action_94 _ = happyReduce_34

action_95 (25) = happyShift action_19
action_95 (26) = happyShift action_20
action_95 (27) = happyFail
action_95 (28) = happyShift action_21
action_95 (37) = happyShift action_71
action_95 (38) = happyShift action_72
action_95 (39) = happyShift action_73
action_95 (40) = happyShift action_74
action_95 (41) = happyShift action_23
action_95 (43) = happyFail
action_95 (44) = happyFail
action_95 (45) = happyFail
action_95 (46) = happyFail
action_95 (47) = happyShift action_80
action_95 (48) = happyShift action_81
action_95 (49) = happyShift action_82
action_95 (63) = happyShift action_84
action_95 (64) = happyShift action_85
action_95 (14) = happyGoto action_69
action_95 _ = happyReduce_33

action_96 (25) = happyShift action_19
action_96 (26) = happyShift action_20
action_96 (27) = happyFail
action_96 (28) = happyShift action_21
action_96 (37) = happyShift action_71
action_96 (38) = happyShift action_72
action_96 (39) = happyShift action_73
action_96 (40) = happyShift action_74
action_96 (41) = happyShift action_23
action_96 (43) = happyFail
action_96 (44) = happyFail
action_96 (45) = happyFail
action_96 (46) = happyFail
action_96 (47) = happyShift action_80
action_96 (48) = happyShift action_81
action_96 (49) = happyShift action_82
action_96 (63) = happyShift action_84
action_96 (64) = happyShift action_85
action_96 (14) = happyGoto action_69
action_96 _ = happyReduce_31

action_97 (25) = happyShift action_19
action_97 (26) = happyShift action_20
action_97 (27) = happyFail
action_97 (28) = happyShift action_21
action_97 (37) = happyShift action_71
action_97 (38) = happyShift action_72
action_97 (39) = happyShift action_73
action_97 (40) = happyShift action_74
action_97 (41) = happyShift action_23
action_97 (43) = happyFail
action_97 (44) = happyFail
action_97 (45) = happyFail
action_97 (46) = happyFail
action_97 (47) = happyShift action_80
action_97 (48) = happyShift action_81
action_97 (49) = happyShift action_82
action_97 (63) = happyShift action_84
action_97 (64) = happyShift action_85
action_97 (14) = happyGoto action_69
action_97 _ = happyReduce_32

action_98 (25) = happyShift action_19
action_98 (26) = happyShift action_20
action_98 (27) = happyFail
action_98 (28) = happyShift action_21
action_98 (37) = happyShift action_71
action_98 (38) = happyShift action_72
action_98 (39) = happyShift action_73
action_98 (40) = happyShift action_74
action_98 (41) = happyShift action_23
action_98 (43) = happyFail
action_98 (44) = happyFail
action_98 (45) = happyFail
action_98 (46) = happyFail
action_98 (47) = happyShift action_80
action_98 (48) = happyShift action_81
action_98 (49) = happyShift action_82
action_98 (63) = happyShift action_84
action_98 (64) = happyShift action_85
action_98 (14) = happyGoto action_69
action_98 _ = happyReduce_30

action_99 (25) = happyShift action_19
action_99 (26) = happyShift action_20
action_99 (28) = happyShift action_21
action_99 (41) = happyShift action_23
action_99 (63) = happyShift action_84
action_99 (64) = happyShift action_85
action_99 (14) = happyGoto action_69
action_99 _ = happyReduce_29

action_100 (25) = happyShift action_19
action_100 (26) = happyShift action_20
action_100 (28) = happyShift action_21
action_100 (41) = happyShift action_23
action_100 (63) = happyShift action_84
action_100 (64) = happyShift action_85
action_100 (14) = happyGoto action_69
action_100 _ = happyReduce_28

action_101 (25) = happyShift action_19
action_101 (26) = happyShift action_20
action_101 (28) = happyShift action_21
action_101 (39) = happyShift action_73
action_101 (40) = happyShift action_74
action_101 (41) = happyShift action_23
action_101 (48) = happyShift action_81
action_101 (63) = happyShift action_84
action_101 (64) = happyShift action_85
action_101 (14) = happyGoto action_69
action_101 _ = happyReduce_27

action_102 (25) = happyShift action_19
action_102 (26) = happyShift action_20
action_102 (28) = happyShift action_21
action_102 (39) = happyShift action_73
action_102 (40) = happyShift action_74
action_102 (41) = happyShift action_23
action_102 (48) = happyShift action_81
action_102 (63) = happyShift action_84
action_102 (64) = happyShift action_85
action_102 (14) = happyGoto action_69
action_102 _ = happyReduce_26

action_103 (27) = happyShift action_125
action_103 _ = happyFail

action_104 (26) = happyShift action_39
action_104 (32) = happyShift action_40
action_104 (33) = happyShift action_41
action_104 (41) = happyShift action_42
action_104 (12) = happyGoto action_124
action_104 _ = happyFail

action_105 (25) = happyShift action_19
action_105 (26) = happyShift action_20
action_105 (28) = happyShift action_21
action_105 (34) = happyShift action_31
action_105 (37) = happyShift action_32
action_105 (38) = happyShift action_33
action_105 (39) = happyShift action_34
action_105 (40) = happyShift action_35
action_105 (41) = happyShift action_23
action_105 (52) = happyShift action_36
action_105 (53) = happyShift action_37
action_105 (59) = happyShift action_24
action_105 (13) = happyGoto action_123
action_105 (14) = happyGoto action_30
action_105 _ = happyFail

action_106 (31) = happyShift action_61
action_106 _ = happyReduce_23

action_107 _ = happyReduce_25

action_108 (51) = happyShift action_122
action_108 _ = happyFail

action_109 (26) = happyShift action_5
action_109 (35) = happyShift action_9
action_109 (58) = happyShift action_6
action_109 (67) = happyShift action_7
action_109 (4) = happyGoto action_121
action_109 (5) = happyGoto action_2
action_109 (11) = happyGoto action_3
action_109 (17) = happyGoto action_4
action_109 _ = happyReduce_3

action_110 (25) = happyShift action_19
action_110 (26) = happyShift action_20
action_110 (28) = happyShift action_21
action_110 (34) = happyShift action_31
action_110 (37) = happyShift action_32
action_110 (38) = happyShift action_33
action_110 (39) = happyShift action_34
action_110 (40) = happyShift action_35
action_110 (41) = happyShift action_23
action_110 (52) = happyShift action_36
action_110 (53) = happyShift action_37
action_110 (59) = happyShift action_24
action_110 (13) = happyGoto action_120
action_110 (14) = happyGoto action_30
action_110 _ = happyFail

action_111 (25) = happyShift action_19
action_111 (26) = happyShift action_20
action_111 (28) = happyShift action_21
action_111 (34) = happyShift action_31
action_111 (37) = happyShift action_32
action_111 (38) = happyShift action_33
action_111 (39) = happyShift action_34
action_111 (40) = happyShift action_35
action_111 (41) = happyShift action_23
action_111 (52) = happyShift action_36
action_111 (53) = happyShift action_37
action_111 (59) = happyShift action_24
action_111 (13) = happyGoto action_119
action_111 (14) = happyGoto action_30
action_111 _ = happyFail

action_112 _ = happyReduce_13

action_113 (26) = happyShift action_39
action_113 (31) = happyShift action_61
action_113 (32) = happyShift action_40
action_113 (33) = happyShift action_41
action_113 (41) = happyShift action_42
action_113 (8) = happyGoto action_118
action_113 (12) = happyGoto action_113
action_113 _ = happyReduce_14

action_114 (26) = happyShift action_54
action_114 (6) = happyGoto action_117
action_114 (7) = happyGoto action_53
action_114 _ = happyFail

action_115 (67) = happyShift action_116
action_115 _ = happyFail

action_116 (26) = happyShift action_13
action_116 (32) = happyShift action_14
action_116 (33) = happyShift action_15
action_116 (68) = happyReduce_66
action_116 (18) = happyGoto action_131
action_116 (19) = happyGoto action_132
action_116 (20) = happyGoto action_133
action_116 (21) = happyGoto action_12
action_116 _ = happyReduce_66

action_117 _ = happyReduce_12

action_118 _ = happyReduce_15

action_119 (25) = happyShift action_19
action_119 (26) = happyShift action_20
action_119 (27) = happyShift action_70
action_119 (28) = happyShift action_21
action_119 (37) = happyShift action_71
action_119 (38) = happyShift action_72
action_119 (39) = happyShift action_73
action_119 (40) = happyShift action_74
action_119 (41) = happyShift action_23
action_119 (43) = happyShift action_76
action_119 (44) = happyShift action_77
action_119 (45) = happyShift action_78
action_119 (46) = happyShift action_79
action_119 (47) = happyShift action_80
action_119 (48) = happyShift action_81
action_119 (49) = happyShift action_82
action_119 (59) = happyShift action_24
action_119 (61) = happyShift action_83
action_119 (63) = happyShift action_84
action_119 (64) = happyShift action_85
action_119 (14) = happyGoto action_69
action_119 _ = happyReduce_18

action_120 (25) = happyShift action_19
action_120 (26) = happyShift action_20
action_120 (27) = happyShift action_70
action_120 (28) = happyShift action_21
action_120 (37) = happyShift action_71
action_120 (38) = happyShift action_72
action_120 (39) = happyShift action_73
action_120 (40) = happyShift action_74
action_120 (41) = happyShift action_23
action_120 (43) = happyShift action_76
action_120 (44) = happyShift action_77
action_120 (45) = happyShift action_78
action_120 (46) = happyShift action_79
action_120 (47) = happyShift action_80
action_120 (48) = happyShift action_81
action_120 (49) = happyShift action_82
action_120 (59) = happyShift action_24
action_120 (61) = happyShift action_83
action_120 (63) = happyShift action_84
action_120 (64) = happyShift action_85
action_120 (14) = happyGoto action_69
action_120 _ = happyReduce_19

action_121 (51) = happyShift action_130
action_121 _ = happyFail

action_122 _ = happyReduce_7

action_123 (25) = happyShift action_19
action_123 (26) = happyShift action_20
action_123 (27) = happyShift action_70
action_123 (28) = happyShift action_21
action_123 (37) = happyShift action_71
action_123 (38) = happyShift action_72
action_123 (39) = happyShift action_73
action_123 (40) = happyShift action_74
action_123 (41) = happyShift action_23
action_123 (43) = happyShift action_76
action_123 (44) = happyShift action_77
action_123 (45) = happyShift action_78
action_123 (46) = happyShift action_79
action_123 (47) = happyShift action_80
action_123 (48) = happyShift action_81
action_123 (49) = happyShift action_82
action_123 (51) = happyShift action_128
action_123 (55) = happyShift action_129
action_123 (59) = happyShift action_24
action_123 (61) = happyShift action_83
action_123 (63) = happyShift action_84
action_123 (64) = happyShift action_85
action_123 (14) = happyGoto action_69
action_123 _ = happyFail

action_124 (31) = happyShift action_127
action_124 _ = happyFail

action_125 (25) = happyShift action_19
action_125 (26) = happyShift action_20
action_125 (28) = happyShift action_21
action_125 (34) = happyShift action_31
action_125 (37) = happyShift action_32
action_125 (38) = happyShift action_33
action_125 (39) = happyShift action_34
action_125 (40) = happyShift action_35
action_125 (41) = happyShift action_23
action_125 (52) = happyShift action_36
action_125 (53) = happyShift action_37
action_125 (59) = happyShift action_24
action_125 (13) = happyGoto action_126
action_125 (14) = happyGoto action_30
action_125 _ = happyFail

action_126 (25) = happyShift action_19
action_126 (26) = happyShift action_20
action_126 (27) = happyFail
action_126 (28) = happyShift action_21
action_126 (37) = happyShift action_71
action_126 (38) = happyShift action_72
action_126 (39) = happyShift action_73
action_126 (40) = happyShift action_74
action_126 (41) = happyShift action_23
action_126 (43) = happyFail
action_126 (44) = happyFail
action_126 (45) = happyFail
action_126 (46) = happyFail
action_126 (47) = happyShift action_80
action_126 (48) = happyShift action_81
action_126 (49) = happyShift action_82
action_126 (63) = happyShift action_84
action_126 (64) = happyShift action_85
action_126 (14) = happyGoto action_69
action_126 _ = happyReduce_39

action_127 (25) = happyShift action_19
action_127 (26) = happyShift action_138
action_127 (28) = happyShift action_21
action_127 (32) = happyShift action_40
action_127 (33) = happyShift action_41
action_127 (34) = happyShift action_31
action_127 (37) = happyShift action_32
action_127 (38) = happyShift action_33
action_127 (39) = happyShift action_34
action_127 (40) = happyShift action_35
action_127 (41) = happyShift action_139
action_127 (52) = happyShift action_36
action_127 (53) = happyShift action_37
action_127 (59) = happyShift action_24
action_127 (12) = happyGoto action_106
action_127 (13) = happyGoto action_137
action_127 (14) = happyGoto action_30
action_127 _ = happyFail

action_128 _ = happyReduce_46

action_129 (25) = happyShift action_19
action_129 (26) = happyShift action_20
action_129 (28) = happyShift action_21
action_129 (34) = happyShift action_31
action_129 (37) = happyShift action_32
action_129 (38) = happyShift action_33
action_129 (39) = happyShift action_34
action_129 (40) = happyShift action_35
action_129 (41) = happyShift action_23
action_129 (52) = happyShift action_36
action_129 (53) = happyShift action_37
action_129 (59) = happyShift action_24
action_129 (13) = happyGoto action_136
action_129 (14) = happyGoto action_30
action_129 _ = happyFail

action_130 _ = happyReduce_6

action_131 (68) = happyShift action_135
action_131 _ = happyFail

action_132 (62) = happyShift action_134
action_132 _ = happyReduce_64

action_133 _ = happyReduce_65

action_134 (26) = happyShift action_13
action_134 (32) = happyShift action_14
action_134 (33) = happyShift action_15
action_134 (68) = happyReduce_66
action_134 (18) = happyGoto action_141
action_134 (19) = happyGoto action_132
action_134 (20) = happyGoto action_133
action_134 (21) = happyGoto action_12
action_134 _ = happyReduce_66

action_135 (36) = happyShift action_140
action_135 _ = happyFail

action_136 (25) = happyShift action_19
action_136 (26) = happyShift action_20
action_136 (28) = happyShift action_21
action_136 (37) = happyShift action_71
action_136 (38) = happyShift action_72
action_136 (39) = happyShift action_73
action_136 (40) = happyShift action_74
action_136 (41) = happyShift action_23
action_136 (47) = happyShift action_80
action_136 (48) = happyShift action_81
action_136 (49) = happyShift action_82
action_136 (63) = happyShift action_84
action_136 (64) = happyShift action_85
action_136 (14) = happyGoto action_69
action_136 _ = happyReduce_47

action_137 (25) = happyShift action_19
action_137 (26) = happyShift action_20
action_137 (27) = happyShift action_70
action_137 (28) = happyShift action_21
action_137 (37) = happyShift action_71
action_137 (38) = happyShift action_72
action_137 (39) = happyShift action_73
action_137 (40) = happyShift action_74
action_137 (41) = happyShift action_23
action_137 (43) = happyShift action_76
action_137 (44) = happyShift action_77
action_137 (45) = happyShift action_78
action_137 (46) = happyShift action_79
action_137 (47) = happyShift action_80
action_137 (48) = happyShift action_81
action_137 (49) = happyShift action_82
action_137 (63) = happyShift action_84
action_137 (64) = happyShift action_85
action_137 (14) = happyGoto action_69
action_137 _ = happyReduce_45

action_138 (31) = happyReduce_24
action_138 (42) = happyReduce_24
action_138 _ = happyReduce_56

action_139 (25) = happyShift action_19
action_139 (26) = happyShift action_138
action_139 (28) = happyShift action_21
action_139 (32) = happyShift action_40
action_139 (33) = happyShift action_41
action_139 (34) = happyShift action_31
action_139 (37) = happyShift action_32
action_139 (38) = happyShift action_33
action_139 (39) = happyShift action_34
action_139 (40) = happyShift action_35
action_139 (41) = happyShift action_139
action_139 (52) = happyShift action_36
action_139 (53) = happyShift action_37
action_139 (59) = happyShift action_24
action_139 (12) = happyGoto action_60
action_139 (13) = happyGoto action_29
action_139 (14) = happyGoto action_30
action_139 _ = happyFail

action_140 (25) = happyShift action_143
action_140 (26) = happyShift action_144
action_140 (28) = happyShift action_145
action_140 (29) = happyShift action_146
action_140 (41) = happyShift action_147
action_140 (67) = happyShift action_148
action_140 (22) = happyGoto action_142
action_140 _ = happyFail

action_141 _ = happyReduce_63

action_142 (30) = happyShift action_151
action_142 (37) = happyShift action_152
action_142 (38) = happyShift action_153
action_142 (39) = happyShift action_154
action_142 (40) = happyShift action_155
action_142 (41) = happyShift action_156
action_142 (43) = happyShift action_157
action_142 (65) = happyShift action_158
action_142 (66) = happyShift action_159
action_142 _ = happyReduce_61

action_143 _ = happyReduce_73

action_144 _ = happyReduce_75

action_145 _ = happyReduce_74

action_146 _ = happyReduce_76

action_147 (25) = happyShift action_143
action_147 (26) = happyShift action_144
action_147 (28) = happyShift action_145
action_147 (29) = happyShift action_146
action_147 (41) = happyShift action_147
action_147 (67) = happyShift action_148
action_147 (22) = happyGoto action_150
action_147 _ = happyFail

action_148 (26) = happyShift action_149
action_148 _ = happyFail

action_149 (25) = happyShift action_19
action_149 (26) = happyShift action_20
action_149 (28) = happyShift action_21
action_149 (34) = happyShift action_31
action_149 (37) = happyShift action_32
action_149 (38) = happyShift action_33
action_149 (39) = happyShift action_34
action_149 (40) = happyShift action_35
action_149 (41) = happyShift action_23
action_149 (52) = happyShift action_36
action_149 (53) = happyShift action_37
action_149 (59) = happyShift action_24
action_149 (13) = happyGoto action_171
action_149 (14) = happyGoto action_30
action_149 (24) = happyGoto action_172
action_149 _ = happyReduce_90

action_150 (30) = happyShift action_151
action_150 (37) = happyShift action_152
action_150 (38) = happyShift action_153
action_150 (39) = happyShift action_154
action_150 (40) = happyShift action_155
action_150 (41) = happyShift action_156
action_150 (42) = happyShift action_170
action_150 (43) = happyShift action_157
action_150 (65) = happyShift action_158
action_150 (66) = happyShift action_159
action_150 _ = happyFail

action_151 (25) = happyShift action_143
action_151 (26) = happyShift action_144
action_151 (28) = happyShift action_145
action_151 (29) = happyShift action_146
action_151 (41) = happyShift action_147
action_151 (67) = happyShift action_148
action_151 (22) = happyGoto action_169
action_151 _ = happyFail

action_152 (25) = happyShift action_143
action_152 (26) = happyShift action_144
action_152 (28) = happyShift action_145
action_152 (29) = happyShift action_146
action_152 (41) = happyShift action_147
action_152 (67) = happyShift action_148
action_152 (22) = happyGoto action_168
action_152 _ = happyFail

action_153 (25) = happyShift action_143
action_153 (26) = happyShift action_144
action_153 (28) = happyShift action_145
action_153 (29) = happyShift action_146
action_153 (41) = happyShift action_147
action_153 (67) = happyShift action_148
action_153 (22) = happyGoto action_167
action_153 _ = happyFail

action_154 (25) = happyShift action_143
action_154 (26) = happyShift action_144
action_154 (28) = happyShift action_145
action_154 (29) = happyShift action_146
action_154 (41) = happyShift action_147
action_154 (67) = happyShift action_148
action_154 (22) = happyGoto action_166
action_154 _ = happyFail

action_155 (25) = happyShift action_143
action_155 (26) = happyShift action_144
action_155 (28) = happyShift action_145
action_155 (29) = happyShift action_146
action_155 (41) = happyShift action_147
action_155 (67) = happyShift action_148
action_155 (22) = happyGoto action_165
action_155 _ = happyFail

action_156 (25) = happyShift action_143
action_156 (26) = happyShift action_144
action_156 (28) = happyShift action_145
action_156 (29) = happyShift action_146
action_156 (41) = happyShift action_147
action_156 (67) = happyShift action_148
action_156 (22) = happyGoto action_162
action_156 (23) = happyGoto action_164
action_156 _ = happyReduce_87

action_157 (25) = happyShift action_143
action_157 (26) = happyShift action_144
action_157 (28) = happyShift action_145
action_157 (29) = happyShift action_146
action_157 (41) = happyShift action_147
action_157 (67) = happyShift action_148
action_157 (22) = happyGoto action_162
action_157 (23) = happyGoto action_163
action_157 _ = happyReduce_87

action_158 (25) = happyShift action_143
action_158 (26) = happyShift action_144
action_158 (28) = happyShift action_145
action_158 (29) = happyShift action_146
action_158 (41) = happyShift action_147
action_158 (67) = happyShift action_148
action_158 (22) = happyGoto action_161
action_158 _ = happyFail

action_159 (25) = happyShift action_143
action_159 (26) = happyShift action_144
action_159 (28) = happyShift action_145
action_159 (29) = happyShift action_146
action_159 (41) = happyShift action_147
action_159 (67) = happyShift action_148
action_159 (22) = happyGoto action_160
action_159 _ = happyFail

action_160 (30) = happyShift action_151
action_160 (37) = happyShift action_152
action_160 (38) = happyShift action_153
action_160 (39) = happyShift action_154
action_160 (40) = happyShift action_155
action_160 (41) = happyShift action_156
action_160 (43) = happyShift action_157
action_160 (65) = happyShift action_158
action_160 _ = happyReduce_82

action_161 (30) = happyShift action_151
action_161 (37) = happyShift action_152
action_161 (38) = happyShift action_153
action_161 (39) = happyShift action_154
action_161 (40) = happyShift action_155
action_161 (41) = happyShift action_156
action_161 (43) = happyShift action_157
action_161 (61) = happyShift action_183
action_161 (65) = happyShift action_158
action_161 (66) = happyShift action_159
action_161 _ = happyFail

action_162 (30) = happyShift action_151
action_162 (37) = happyShift action_152
action_162 (38) = happyShift action_153
action_162 (39) = happyShift action_154
action_162 (40) = happyShift action_155
action_162 (41) = happyShift action_156
action_162 (43) = happyShift action_157
action_162 (62) = happyShift action_182
action_162 (65) = happyShift action_158
action_162 (66) = happyShift action_159
action_162 _ = happyReduce_89

action_163 (44) = happyShift action_181
action_163 _ = happyFail

action_164 (42) = happyShift action_180
action_164 _ = happyFail

action_165 (30) = happyShift action_151
action_165 (41) = happyShift action_156
action_165 (65) = happyShift action_158
action_165 _ = happyReduce_79

action_166 (30) = happyShift action_151
action_166 (41) = happyShift action_156
action_166 (65) = happyShift action_158
action_166 _ = happyReduce_78

action_167 (30) = happyShift action_151
action_167 (39) = happyShift action_154
action_167 (40) = happyShift action_155
action_167 (41) = happyShift action_156
action_167 (65) = happyShift action_158
action_167 _ = happyReduce_81

action_168 (30) = happyShift action_151
action_168 (39) = happyShift action_154
action_168 (40) = happyShift action_155
action_168 (41) = happyShift action_156
action_168 (65) = happyShift action_158
action_168 _ = happyReduce_80

action_169 (65) = happyShift action_158
action_169 _ = happyReduce_86

action_170 _ = happyReduce_72

action_171 (25) = happyShift action_19
action_171 (26) = happyShift action_20
action_171 (27) = happyShift action_70
action_171 (28) = happyShift action_21
action_171 (34) = happyShift action_31
action_171 (37) = happyShift action_176
action_171 (38) = happyShift action_177
action_171 (39) = happyShift action_178
action_171 (40) = happyShift action_179
action_171 (41) = happyShift action_23
action_171 (43) = happyShift action_76
action_171 (44) = happyShift action_77
action_171 (45) = happyShift action_78
action_171 (46) = happyShift action_79
action_171 (47) = happyShift action_80
action_171 (48) = happyShift action_81
action_171 (49) = happyShift action_82
action_171 (52) = happyShift action_36
action_171 (53) = happyShift action_37
action_171 (59) = happyShift action_24
action_171 (61) = happyShift action_83
action_171 (63) = happyShift action_84
action_171 (64) = happyShift action_85
action_171 (68) = happyReduce_92
action_171 (13) = happyGoto action_171
action_171 (14) = happyGoto action_174
action_171 (24) = happyGoto action_175
action_171 _ = happyReduce_92

action_172 (68) = happyShift action_173
action_172 _ = happyFail

action_173 (41) = happyShift action_190
action_173 _ = happyFail

action_174 (25) = happyReduce_50
action_174 (26) = happyReduce_50
action_174 (27) = happyReduce_50
action_174 (28) = happyReduce_50
action_174 (34) = happyReduce_50
action_174 (37) = happyReduce_50
action_174 (38) = happyReduce_50
action_174 (39) = happyReduce_50
action_174 (40) = happyReduce_50
action_174 (41) = happyReduce_50
action_174 (43) = happyReduce_50
action_174 (44) = happyReduce_50
action_174 (45) = happyReduce_50
action_174 (46) = happyReduce_50
action_174 (47) = happyReduce_50
action_174 (48) = happyReduce_50
action_174 (49) = happyReduce_50
action_174 (52) = happyReduce_50
action_174 (53) = happyReduce_50
action_174 (59) = happyReduce_50
action_174 (61) = happyReduce_50
action_174 (63) = happyReduce_50
action_174 (64) = happyReduce_50
action_174 (68) = happyReduce_50
action_174 _ = happyReduce_50

action_175 _ = happyReduce_91

action_176 (25) = happyShift action_19
action_176 (26) = happyShift action_20
action_176 (28) = happyShift action_21
action_176 (34) = happyShift action_31
action_176 (37) = happyShift action_32
action_176 (38) = happyShift action_33
action_176 (39) = happyShift action_34
action_176 (40) = happyShift action_35
action_176 (41) = happyShift action_23
action_176 (52) = happyShift action_36
action_176 (53) = happyShift action_37
action_176 (59) = happyShift action_24
action_176 (13) = happyGoto action_189
action_176 (14) = happyGoto action_30
action_176 _ = happyFail

action_177 (25) = happyShift action_19
action_177 (26) = happyShift action_20
action_177 (28) = happyShift action_21
action_177 (34) = happyShift action_31
action_177 (37) = happyShift action_32
action_177 (38) = happyShift action_33
action_177 (39) = happyShift action_34
action_177 (40) = happyShift action_35
action_177 (41) = happyShift action_23
action_177 (52) = happyShift action_36
action_177 (53) = happyShift action_37
action_177 (59) = happyShift action_24
action_177 (13) = happyGoto action_188
action_177 (14) = happyGoto action_30
action_177 _ = happyFail

action_178 (25) = happyShift action_19
action_178 (26) = happyShift action_20
action_178 (28) = happyShift action_21
action_178 (34) = happyShift action_31
action_178 (37) = happyShift action_32
action_178 (38) = happyShift action_33
action_178 (39) = happyShift action_34
action_178 (40) = happyShift action_35
action_178 (41) = happyShift action_23
action_178 (52) = happyShift action_36
action_178 (53) = happyShift action_37
action_178 (59) = happyShift action_24
action_178 (13) = happyGoto action_187
action_178 (14) = happyGoto action_30
action_178 _ = happyFail

action_179 (25) = happyShift action_19
action_179 (26) = happyShift action_20
action_179 (28) = happyShift action_21
action_179 (34) = happyShift action_31
action_179 (37) = happyShift action_32
action_179 (38) = happyShift action_33
action_179 (39) = happyShift action_34
action_179 (40) = happyShift action_35
action_179 (41) = happyShift action_23
action_179 (52) = happyShift action_36
action_179 (53) = happyShift action_37
action_179 (59) = happyShift action_24
action_179 (13) = happyGoto action_186
action_179 (14) = happyGoto action_30
action_179 _ = happyFail

action_180 _ = happyReduce_84

action_181 _ = happyReduce_85

action_182 (25) = happyShift action_143
action_182 (26) = happyShift action_144
action_182 (28) = happyShift action_145
action_182 (29) = happyShift action_146
action_182 (41) = happyShift action_147
action_182 (67) = happyShift action_148
action_182 (22) = happyGoto action_162
action_182 (23) = happyGoto action_185
action_182 _ = happyReduce_87

action_183 (25) = happyShift action_143
action_183 (26) = happyShift action_144
action_183 (28) = happyShift action_145
action_183 (29) = happyShift action_146
action_183 (41) = happyShift action_147
action_183 (67) = happyShift action_148
action_183 (22) = happyGoto action_184
action_183 _ = happyFail

action_184 (30) = happyShift action_151
action_184 (37) = happyShift action_152
action_184 (38) = happyShift action_153
action_184 (39) = happyShift action_154
action_184 (40) = happyShift action_155
action_184 (41) = happyShift action_156
action_184 (43) = happyShift action_157
action_184 (65) = happyShift action_158
action_184 (66) = happyShift action_159
action_184 _ = happyReduce_83

action_185 _ = happyReduce_88

action_186 (25) = happyShift action_19
action_186 (26) = happyShift action_20
action_186 (28) = happyShift action_21
action_186 (41) = happyShift action_23
action_186 (63) = happyShift action_84
action_186 (64) = happyShift action_85
action_186 (14) = happyGoto action_69
action_186 _ = happyReduce_44

action_187 (25) = happyShift action_19
action_187 (26) = happyShift action_20
action_187 (28) = happyShift action_21
action_187 (41) = happyShift action_23
action_187 (63) = happyShift action_84
action_187 (64) = happyShift action_85
action_187 (14) = happyGoto action_69
action_187 _ = happyReduce_43

action_188 (25) = happyShift action_19
action_188 (26) = happyShift action_20
action_188 (28) = happyShift action_21
action_188 (41) = happyShift action_23
action_188 (63) = happyShift action_84
action_188 (64) = happyShift action_85
action_188 (14) = happyGoto action_69
action_188 _ = happyReduce_41

action_189 (25) = happyShift action_19
action_189 (26) = happyShift action_20
action_189 (28) = happyShift action_21
action_189 (41) = happyShift action_23
action_189 (63) = happyShift action_84
action_189 (64) = happyShift action_85
action_189 (14) = happyGoto action_69
action_189 _ = happyReduce_42

action_190 (25) = happyShift action_143
action_190 (26) = happyShift action_144
action_190 (28) = happyShift action_145
action_190 (29) = happyShift action_146
action_190 (41) = happyShift action_147
action_190 (67) = happyShift action_148
action_190 (22) = happyGoto action_162
action_190 (23) = happyGoto action_191
action_190 _ = happyReduce_87

action_191 (42) = happyShift action_192
action_191 _ = happyFail

action_192 _ = happyReduce_77

happyReduce_1 = happySpecReduce_2  4 happyReduction_1
happyReduction_1 (HappyAbsSyn4  happy_var_2)
	(HappyAbsSyn5  happy_var_1)
	 =  HappyAbsSyn4
		 (happy_var_1:happy_var_2
	)
happyReduction_1 _ _  = notHappyAtAll 

happyReduce_2 = happySpecReduce_2  4 happyReduction_2
happyReduction_2 (HappyAbsSyn4  happy_var_2)
	_
	 =  HappyAbsSyn4
		 (happy_var_2
	)
happyReduction_2 _ _  = notHappyAtAll 

happyReduce_3 = happySpecReduce_0  4 happyReduction_3
happyReduction_3  =  HappyAbsSyn4
		 ([]
	)

happyReduce_4 = happySpecReduce_1  5 happyReduction_4
happyReduction_4 (HappyAbsSyn11  happy_var_1)
	 =  HappyAbsSyn5
		 (happy_var_1
	)
happyReduction_4 _  = notHappyAtAll 

happyReduce_5 = happyReduce 4 5 happyReduction_5
happyReduction_5 ((HappyAbsSyn6  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyTerminal (TokenVar happy_var_2)) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn5
		 (UserTypeDefinition happy_var_2 happy_var_4
	) `HappyStk` happyRest

happyReduce_6 = happyReduce 7 5 happyReduction_6
happyReduction_6 (_ `HappyStk`
	(HappyAbsSyn4  happy_var_6) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn15  happy_var_2) `HappyStk`
	(HappyTerminal (TokenVar happy_var_1)) `HappyStk`
	happyRest)
	 = HappyAbsSyn5
		 (FunctionDefinitionSc happy_var_1 happy_var_2 happy_var_4 happy_var_6
	) `HappyStk` happyRest

happyReduce_7 = happyReduce 6 5 happyReduction_7
happyReduction_7 (_ `HappyStk`
	(HappyAbsSyn4  happy_var_5) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn9  happy_var_3) `HappyStk`
	(HappyAbsSyn15  happy_var_2) `HappyStk`
	(HappyTerminal (TokenVar happy_var_1)) `HappyStk`
	happyRest)
	 = HappyAbsSyn5
		 (FunctionDefinitionSc happy_var_1 happy_var_2 ( expandGuard happy_var_3) happy_var_5
	) `HappyStk` happyRest

happyReduce_8 = happyReduce 4 5 happyReduction_8
happyReduction_8 ((HappyAbsSyn13  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn15  happy_var_2) `HappyStk`
	(HappyTerminal (TokenVar happy_var_1)) `HappyStk`
	happyRest)
	 = HappyAbsSyn5
		 (FunctionDefinitionSc happy_var_1 happy_var_2 happy_var_4 []
	) `HappyStk` happyRest

happyReduce_9 = happySpecReduce_3  5 happyReduction_9
happyReduction_9 (HappyAbsSyn9  happy_var_3)
	(HappyAbsSyn15  happy_var_2)
	(HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn5
		 (FunctionDefinitionSc happy_var_1 happy_var_2 ( expandGuard happy_var_3) []
	)
happyReduction_9 _ _ _  = notHappyAtAll 

happyReduce_10 = happySpecReduce_1  5 happyReduction_10
happyReduction_10 (HappyAbsSyn17  happy_var_1)
	 =  HappyAbsSyn5
		 (GeneratrixTunneling happy_var_1
	)
happyReduction_10 _  = notHappyAtAll 

happyReduce_11 = happySpecReduce_1  6 happyReduction_11
happyReduction_11 (HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn6
		 ([happy_var_1]
	)
happyReduction_11 _  = notHappyAtAll 

happyReduce_12 = happySpecReduce_3  6 happyReduction_12
happyReduction_12 (HappyAbsSyn6  happy_var_3)
	_
	(HappyAbsSyn7  happy_var_1)
	 =  HappyAbsSyn6
		 (happy_var_1:happy_var_3
	)
happyReduction_12 _ _ _  = notHappyAtAll 

happyReduce_13 = happySpecReduce_2  7 happyReduction_13
happyReduction_13 (HappyAbsSyn8  happy_var_2)
	(HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn7
		 (ConstructorType happy_var_1 happy_var_2
	)
happyReduction_13 _ _  = notHappyAtAll 

happyReduce_14 = happySpecReduce_0  8 happyReduction_14
happyReduction_14  =  HappyAbsSyn8
		 ([]
	)

happyReduce_15 = happySpecReduce_2  8 happyReduction_15
happyReduction_15 (HappyAbsSyn8  happy_var_2)
	(HappyAbsSyn12  happy_var_1)
	 =  HappyAbsSyn8
		 (happy_var_1:happy_var_2
	)
happyReduction_15 _ _  = notHappyAtAll 

happyReduce_16 = happySpecReduce_2  9 happyReduction_16
happyReduction_16 (HappyAbsSyn9  happy_var_2)
	(HappyAbsSyn10  happy_var_1)
	 =  HappyAbsSyn9
		 (happy_var_1:happy_var_2
	)
happyReduction_16 _ _  = notHappyAtAll 

happyReduce_17 = happySpecReduce_1  9 happyReduction_17
happyReduction_17 (HappyAbsSyn10  happy_var_1)
	 =  HappyAbsSyn9
		 ([happy_var_1]
	)
happyReduction_17 _  = notHappyAtAll 

happyReduce_18 = happyReduce 4 10 happyReduction_18
happyReduction_18 ((HappyAbsSyn13  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn10
		 ((happy_var_2,happy_var_4)
	) `HappyStk` happyRest

happyReduce_19 = happyReduce 4 10 happyReduction_19
happyReduction_19 ((HappyAbsSyn13  happy_var_4) `HappyStk`
	_ `HappyStk`
	_ `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn10
		 ((Boolean "true" ,happy_var_4)
	) `HappyStk` happyRest

happyReduce_20 = happySpecReduce_3  11 happyReduction_20
happyReduction_20 (HappyAbsSyn12  happy_var_3)
	_
	(HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn11
		 (TypeDefinitionSc (happy_var_1, happy_var_3)
	)
happyReduction_20 _ _ _  = notHappyAtAll 

happyReduce_21 = happySpecReduce_1  12 happyReduction_21
happyReduction_21 _
	 =  HappyAbsSyn12
		 (Bool
	)

happyReduce_22 = happySpecReduce_1  12 happyReduction_22
happyReduction_22 _
	 =  HappyAbsSyn12
		 (Int
	)

happyReduce_23 = happySpecReduce_3  12 happyReduction_23
happyReduction_23 (HappyAbsSyn12  happy_var_3)
	_
	(HappyAbsSyn12  happy_var_1)
	 =  HappyAbsSyn12
		 (Arrow happy_var_1 happy_var_3
	)
happyReduction_23 _ _ _  = notHappyAtAll 

happyReduce_24 = happySpecReduce_1  12 happyReduction_24
happyReduction_24 (HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn12
		 (UserDef happy_var_1
	)
happyReduction_24 _  = notHappyAtAll 

happyReduce_25 = happySpecReduce_3  12 happyReduction_25
happyReduction_25 _
	(HappyAbsSyn12  happy_var_2)
	_
	 =  HappyAbsSyn12
		 (happy_var_2
	)
happyReduction_25 _ _ _  = notHappyAtAll 

happyReduce_26 = happySpecReduce_3  13 happyReduction_26
happyReduction_26 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pAdd") happy_var_1) happy_var_3
	)
happyReduction_26 _ _ _  = notHappyAtAll 

happyReduce_27 = happySpecReduce_3  13 happyReduction_27
happyReduction_27 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pMinus") happy_var_1) happy_var_3
	)
happyReduction_27 _ _ _  = notHappyAtAll 

happyReduce_28 = happySpecReduce_3  13 happyReduction_28
happyReduction_28 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pPlus") happy_var_1) happy_var_3
	)
happyReduction_28 _ _ _  = notHappyAtAll 

happyReduce_29 = happySpecReduce_3  13 happyReduction_29
happyReduction_29 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pDiv") happy_var_1) happy_var_3
	)
happyReduction_29 _ _ _  = notHappyAtAll 

happyReduce_30 = happySpecReduce_3  13 happyReduction_30
happyReduction_30 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pLess") happy_var_1) happy_var_3
	)
happyReduction_30 _ _ _  = notHappyAtAll 

happyReduce_31 = happySpecReduce_3  13 happyReduction_31
happyReduction_31 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pLessEq") happy_var_1) happy_var_3
	)
happyReduction_31 _ _ _  = notHappyAtAll 

happyReduce_32 = happySpecReduce_3  13 happyReduction_32
happyReduction_32 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pGreat") happy_var_1) happy_var_3
	)
happyReduction_32 _ _ _  = notHappyAtAll 

happyReduce_33 = happySpecReduce_3  13 happyReduction_33
happyReduction_33 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pGreatEq") happy_var_1) happy_var_3
	)
happyReduction_33 _ _ _  = notHappyAtAll 

happyReduce_34 = happySpecReduce_3  13 happyReduction_34
happyReduction_34 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pEq") happy_var_1) happy_var_3
	)
happyReduction_34 _ _ _  = notHappyAtAll 

happyReduce_35 = happySpecReduce_3  13 happyReduction_35
happyReduction_35 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pOr") happy_var_1) happy_var_3
	)
happyReduction_35 _ _ _  = notHappyAtAll 

happyReduce_36 = happySpecReduce_3  13 happyReduction_36
happyReduction_36 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pAnd") happy_var_1) happy_var_3
	)
happyReduction_36 _ _ _  = notHappyAtAll 

happyReduce_37 = happySpecReduce_3  13 happyReduction_37
happyReduction_37 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pMod") happy_var_1) happy_var_3
	)
happyReduction_37 _ _ _  = notHappyAtAll 

happyReduce_38 = happySpecReduce_3  13 happyReduction_38
happyReduction_38 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "pNotEq") happy_var_1) happy_var_3
	)
happyReduction_38 _ _ _  = notHappyAtAll 

happyReduce_39 = happyReduce 5 13 happyReduction_39
happyReduction_39 ((HappyAbsSyn13  happy_var_5) `HappyStk`
	_ `HappyStk`
	(HappyTerminal (TokenVar happy_var_3)) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_1) `HappyStk`
	happyRest)
	 = HappyAbsSyn13
		 (App (App (Variable happy_var_3) happy_var_1) happy_var_5
	) `HappyStk` happyRest

happyReduce_40 = happySpecReduce_2  13 happyReduction_40
happyReduction_40 (HappyAbsSyn13  happy_var_2)
	_
	 =  HappyAbsSyn13
		 (App (Variable "pNot") happy_var_2
	)
happyReduction_40 _ _  = notHappyAtAll 

happyReduce_41 = happySpecReduce_2  13 happyReduction_41
happyReduction_41 (HappyAbsSyn13  happy_var_2)
	_
	 =  HappyAbsSyn13
		 (App (Variable "pNeg") happy_var_2
	)
happyReduction_41 _ _  = notHappyAtAll 

happyReduce_42 = happySpecReduce_2  13 happyReduction_42
happyReduction_42 (HappyAbsSyn13  happy_var_2)
	_
	 =  HappyAbsSyn13
		 (App (Variable "pAdd") happy_var_2
	)
happyReduction_42 _ _  = notHappyAtAll 

happyReduce_43 = happySpecReduce_2  13 happyReduction_43
happyReduction_43 (HappyAbsSyn13  happy_var_2)
	_
	 =  HappyAbsSyn13
		 (App (Variable "pPlus") happy_var_2
	)
happyReduction_43 _ _  = notHappyAtAll 

happyReduce_44 = happySpecReduce_2  13 happyReduction_44
happyReduction_44 (HappyAbsSyn13  happy_var_2)
	_
	 =  HappyAbsSyn13
		 (App (Variable "pDiv") happy_var_2
	)
happyReduction_44 _ _  = notHappyAtAll 

happyReduce_45 = happyReduce 6 13 happyReduction_45
happyReduction_45 ((HappyAbsSyn13  happy_var_6) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn12  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn13
		 (Lambda happy_var_2 happy_var_4 happy_var_6
	) `HappyStk` happyRest

happyReduce_46 = happyReduce 5 13 happyReduction_46
happyReduction_46 (_ `HappyStk`
	(HappyAbsSyn13  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn13
		 (IfOnly happy_var_2 happy_var_4
	) `HappyStk` happyRest

happyReduce_47 = happyReduce 6 13 happyReduction_47
happyReduction_47 ((HappyAbsSyn13  happy_var_6) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_4) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn13  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn13
		 (If happy_var_2 happy_var_4 happy_var_6
	) `HappyStk` happyRest

happyReduce_48 = happySpecReduce_3  13 happyReduction_48
happyReduction_48 (HappyAbsSyn13  happy_var_3)
	_
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App (App (Variable "metalist") happy_var_1) happy_var_3
	)
happyReduction_48 _ _ _  = notHappyAtAll 

happyReduce_49 = happySpecReduce_2  13 happyReduction_49
happyReduction_49 (HappyAbsSyn14  happy_var_2)
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn13
		 (App happy_var_1 happy_var_2
	)
happyReduction_49 _ _  = notHappyAtAll 

happyReduce_50 = happySpecReduce_1  13 happyReduction_50
happyReduction_50 (HappyAbsSyn14  happy_var_1)
	 =  HappyAbsSyn13
		 (happy_var_1
	)
happyReduction_50 _  = notHappyAtAll 

happyReduce_51 = happySpecReduce_3  14 happyReduction_51
happyReduction_51 _
	(HappyAbsSyn13  happy_var_2)
	_
	 =  HappyAbsSyn14
		 (happy_var_2
	)
happyReduction_51 _ _ _  = notHappyAtAll 

happyReduce_52 = happySpecReduce_2  14 happyReduction_52
happyReduction_52 _
	_
	 =  HappyAbsSyn14
		 (Variable "metaemptylist"
	)

happyReduce_53 = happySpecReduce_3  14 happyReduction_53
happyReduction_53 _
	(HappyAbsSyn16  happy_var_2)
	_
	 =  HappyAbsSyn14
		 (makeApplicaionFromList happy_var_2
	)
happyReduction_53 _ _ _  = notHappyAtAll 

happyReduce_54 = happySpecReduce_1  14 happyReduction_54
happyReduction_54 (HappyTerminal (TokenInt happy_var_1))
	 =  HappyAbsSyn14
		 (Integer happy_var_1
	)
happyReduction_54 _  = notHappyAtAll 

happyReduce_55 = happySpecReduce_1  14 happyReduction_55
happyReduction_55 (HappyTerminal (TokenBool happy_var_1))
	 =  HappyAbsSyn14
		 (Boolean happy_var_1
	)
happyReduction_55 _  = notHappyAtAll 

happyReduce_56 = happySpecReduce_1  14 happyReduction_56
happyReduction_56 (HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn14
		 (Variable happy_var_1
	)
happyReduction_56 _  = notHappyAtAll 

happyReduce_57 = happySpecReduce_0  15 happyReduction_57
happyReduction_57  =  HappyAbsSyn15
		 ([]
	)

happyReduce_58 = happySpecReduce_2  15 happyReduction_58
happyReduction_58 (HappyAbsSyn15  happy_var_2)
	(HappyAbsSyn14  happy_var_1)
	 =  HappyAbsSyn15
		 (happy_var_1:happy_var_2
	)
happyReduction_58 _ _  = notHappyAtAll 

happyReduce_59 = happySpecReduce_1  16 happyReduction_59
happyReduction_59 (HappyAbsSyn14  happy_var_1)
	 =  HappyAbsSyn16
		 ([ happy_var_1 ]
	)
happyReduction_59 _  = notHappyAtAll 

happyReduce_60 = happySpecReduce_3  16 happyReduction_60
happyReduction_60 (HappyAbsSyn16  happy_var_3)
	_
	(HappyAbsSyn14  happy_var_1)
	 =  HappyAbsSyn16
		 (happy_var_1:happy_var_3
	)
happyReduction_60 _ _ _  = notHappyAtAll 

happyReduce_61 = happyReduce 10 17 happyReduction_61
happyReduction_61 ((HappyAbsSyn22  happy_var_10) `HappyStk`
	_ `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn18  happy_var_7) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn15  happy_var_5) `HappyStk`
	(HappyTerminal (TokenVar happy_var_4)) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn20  happy_var_2) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn17
		 (Generatrix happy_var_2 happy_var_4 happy_var_5 happy_var_7 happy_var_10
	) `HappyStk` happyRest

happyReduce_62 = happySpecReduce_0  18 happyReduction_62
happyReduction_62  =  HappyAbsSyn18
		 ([]
	)

happyReduce_63 = happySpecReduce_3  18 happyReduction_63
happyReduction_63 (HappyAbsSyn18  happy_var_3)
	_
	(HappyAbsSyn19  happy_var_1)
	 =  HappyAbsSyn18
		 (happy_var_1:happy_var_3
	)
happyReduction_63 _ _ _  = notHappyAtAll 

happyReduce_64 = happySpecReduce_1  18 happyReduction_64
happyReduction_64 (HappyAbsSyn19  happy_var_1)
	 =  HappyAbsSyn18
		 ([happy_var_1]
	)
happyReduction_64 _  = notHappyAtAll 

happyReduce_65 = happySpecReduce_1  19 happyReduction_65
happyReduction_65 (HappyAbsSyn20  happy_var_1)
	 =  HappyAbsSyn19
		 (makeCargs happy_var_1
	)
happyReduction_65 _  = notHappyAtAll 

happyReduce_66 = happySpecReduce_0  20 happyReduction_66
happyReduction_66  =  HappyAbsSyn20
		 ([]
	)

happyReduce_67 = happySpecReduce_2  20 happyReduction_67
happyReduction_67 (HappyAbsSyn20  happy_var_2)
	(HappyAbsSyn21  happy_var_1)
	 =  HappyAbsSyn20
		 (happy_var_1:happy_var_2
	)
happyReduction_67 _ _  = notHappyAtAll 

happyReduce_68 = happySpecReduce_1  20 happyReduction_68
happyReduction_68 (HappyAbsSyn21  happy_var_1)
	 =  HappyAbsSyn20
		 ([happy_var_1]
	)
happyReduction_68 _  = notHappyAtAll 

happyReduce_69 = happySpecReduce_1  21 happyReduction_69
happyReduction_69 (HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn21
		 (happy_var_1
	)
happyReduction_69 _  = notHappyAtAll 

happyReduce_70 = happySpecReduce_1  21 happyReduction_70
happyReduction_70 _
	 =  HappyAbsSyn21
		 ("int"
	)

happyReduce_71 = happySpecReduce_1  21 happyReduction_71
happyReduction_71 _
	 =  HappyAbsSyn21
		 ("bool"
	)

happyReduce_72 = happySpecReduce_3  22 happyReduction_72
happyReduction_72 _
	(HappyAbsSyn22  happy_var_2)
	_
	 =  HappyAbsSyn22
		 (happy_var_2
	)
happyReduction_72 _ _ _  = notHappyAtAll 

happyReduce_73 = happySpecReduce_1  22 happyReduction_73
happyReduction_73 (HappyTerminal (TokenInt happy_var_1))
	 =  HappyAbsSyn22
		 (CodeNumber happy_var_1
	)
happyReduction_73 _  = notHappyAtAll 

happyReduce_74 = happySpecReduce_1  22 happyReduction_74
happyReduction_74 (HappyTerminal (TokenBool happy_var_1))
	 =  HappyAbsSyn22
		 (CodeBoolean happy_var_1
	)
happyReduction_74 _  = notHappyAtAll 

happyReduce_75 = happySpecReduce_1  22 happyReduction_75
happyReduction_75 (HappyTerminal (TokenVar happy_var_1))
	 =  HappyAbsSyn22
		 (CodeVariable happy_var_1
	)
happyReduction_75 _  = notHappyAtAll 

happyReduce_76 = happySpecReduce_1  22 happyReduction_76
happyReduction_76 (HappyTerminal (TokenString happy_var_1))
	 =  HappyAbsSyn22
		 (CodeString happy_var_1
	)
happyReduction_76 _  = notHappyAtAll 

happyReduce_77 = happyReduce 7 22 happyReduction_77
happyReduction_77 (_ `HappyStk`
	(HappyAbsSyn23  happy_var_6) `HappyStk`
	_ `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn24  happy_var_3) `HappyStk`
	(HappyTerminal (TokenVar happy_var_2)) `HappyStk`
	_ `HappyStk`
	happyRest)
	 = HappyAbsSyn22
		 (CodeGeneratrixCall happy_var_2 happy_var_3 happy_var_6
	) `HappyStk` happyRest

happyReduce_78 = happySpecReduce_3  22 happyReduction_78
happyReduction_78 (HappyAbsSyn22  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn22
		 (CodeBinaryOpMult happy_var_1 happy_var_3
	)
happyReduction_78 _ _ _  = notHappyAtAll 

happyReduce_79 = happySpecReduce_3  22 happyReduction_79
happyReduction_79 (HappyAbsSyn22  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn22
		 (CodeBinaryOpDiv happy_var_1 happy_var_3
	)
happyReduction_79 _ _ _  = notHappyAtAll 

happyReduce_80 = happySpecReduce_3  22 happyReduction_80
happyReduction_80 (HappyAbsSyn22  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn22
		 (CodeBinaryOpAdd happy_var_1 happy_var_3
	)
happyReduction_80 _ _ _  = notHappyAtAll 

happyReduce_81 = happySpecReduce_3  22 happyReduction_81
happyReduction_81 (HappyAbsSyn22  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn22
		 (CodeBinaryOpMinus happy_var_1 happy_var_3
	)
happyReduction_81 _ _ _  = notHappyAtAll 

happyReduce_82 = happySpecReduce_3  22 happyReduction_82
happyReduction_82 (HappyAbsSyn22  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn22
		 (CodeClassAccess happy_var_1 happy_var_3
	)
happyReduction_82 _ _ _  = notHappyAtAll 

happyReduce_83 = happyReduce 5 22 happyReduction_83
happyReduction_83 ((HappyAbsSyn22  happy_var_5) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn22  happy_var_3) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn22  happy_var_1) `HappyStk`
	happyRest)
	 = HappyAbsSyn22
		 (CodeIf happy_var_1 happy_var_3 happy_var_5
	) `HappyStk` happyRest

happyReduce_84 = happyReduce 4 22 happyReduction_84
happyReduction_84 (_ `HappyStk`
	(HappyAbsSyn23  happy_var_3) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn22  happy_var_1) `HappyStk`
	happyRest)
	 = HappyAbsSyn22
		 (CodeFunctionCall  happy_var_1 happy_var_3
	) `HappyStk` happyRest

happyReduce_85 = happyReduce 4 22 happyReduction_85
happyReduction_85 (_ `HappyStk`
	(HappyAbsSyn23  happy_var_3) `HappyStk`
	_ `HappyStk`
	(HappyAbsSyn22  happy_var_1) `HappyStk`
	happyRest)
	 = HappyAbsSyn22
		 (CodeTemplateInst  happy_var_1 happy_var_3
	) `HappyStk` happyRest

happyReduce_86 = happySpecReduce_3  22 happyReduction_86
happyReduction_86 (HappyAbsSyn22  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn22
		 (CodeStaticAccess happy_var_1 happy_var_3
	)
happyReduction_86 _ _ _  = notHappyAtAll 

happyReduce_87 = happySpecReduce_0  23 happyReduction_87
happyReduction_87  =  HappyAbsSyn23
		 ([]
	)

happyReduce_88 = happySpecReduce_3  23 happyReduction_88
happyReduction_88 (HappyAbsSyn23  happy_var_3)
	_
	(HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn23
		 (happy_var_1:happy_var_3
	)
happyReduction_88 _ _ _  = notHappyAtAll 

happyReduce_89 = happySpecReduce_1  23 happyReduction_89
happyReduction_89 (HappyAbsSyn22  happy_var_1)
	 =  HappyAbsSyn23
		 ([happy_var_1]
	)
happyReduction_89 _  = notHappyAtAll 

happyReduce_90 = happySpecReduce_0  24 happyReduction_90
happyReduction_90  =  HappyAbsSyn24
		 ([]
	)

happyReduce_91 = happySpecReduce_2  24 happyReduction_91
happyReduction_91 (HappyAbsSyn24  happy_var_2)
	(HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn24
		 (happy_var_1:happy_var_2
	)
happyReduction_91 _ _  = notHappyAtAll 

happyReduce_92 = happySpecReduce_1  24 happyReduction_92
happyReduction_92 (HappyAbsSyn13  happy_var_1)
	 =  HappyAbsSyn24
		 ([happy_var_1]
	)
happyReduction_92 _  = notHappyAtAll 

happyNewToken action sts stk [] =
	action 70 70 notHappyAtAll (HappyState action) sts stk []

happyNewToken action sts stk (tk:tks) =
	let cont i = action i i tk (HappyState action) sts stk tks in
	case tk of {
	TokenInt happy_dollar_dollar -> cont 25;
	TokenVar happy_dollar_dollar -> cont 26;
	TokenBinOp -> cont 27;
	TokenBool happy_dollar_dollar -> cont 28;
	TokenString happy_dollar_dollar -> cont 29;
	TokenTypeDef -> cont 30;
	TokenArrow -> cont 31;
	TokenTypeBool -> cont 32;
	TokenTypeInt -> cont 33;
	TokenNot -> cont 34;
	TokenSep -> cont 35;
	TokenEq -> cont 36;
	TokenPlus -> cont 37;
	TokenMinus -> cont 38;
	TokenTimes -> cont 39;
	TokenDiv -> cont 40;
	TokenOB -> cont 41;
	TokenCB -> cont 42;
	TokenMin -> cont 43;
	TokenMaj -> cont 44;
	TokenMineq -> cont 45;
	TokenMajeq -> cont 46;
	TokenLEq -> cont 47;
	TokenMod -> cont 48;
	TokenNotEq -> cont 49;
	TokenWhere -> cont 50;
	TokenEnd -> cont 51;
	TokenBackSlach -> cont 52;
	TokenIf -> cont 53;
	TokenThen -> cont 54;
	TokenElse -> cont 55;
	TokenGuard -> cont 56;
	TokenOtherwise -> cont 57;
	TokenData -> cont 58;
	TokenOpenList -> cont 59;
	TokenCloseList -> cont 60;
	TokenListConstructor -> cont 61;
	TokenComma -> cont 62;
	TokenOr -> cont 63;
	TokenAnd -> cont 64;
	TokenIfCexp -> cont 65;
	TokenDot -> cont 66;
	TokenOpenB -> cont 67;
	TokenCloseB -> cont 68;
	TokenArroba -> cont 69;
	_ -> happyError' (tk:tks)
	}

happyError_ tk tks = happyError' (tk:tks)

newtype HappyIdentity a = HappyIdentity a
happyIdentity = HappyIdentity
happyRunIdentity (HappyIdentity a) = a

instance Monad HappyIdentity where
    return = HappyIdentity
    (HappyIdentity p) >>= q = q p

happyThen :: () => HappyIdentity a -> (a -> HappyIdentity b) -> HappyIdentity b
happyThen = (>>=)
happyReturn :: () => a -> HappyIdentity a
happyReturn = (return)
happyThen1 m k tks = (>>=) m (\a -> k a tks)
happyReturn1 :: () => a -> b -> HappyIdentity a
happyReturn1 = \a tks -> (return) a
happyError' :: () => [Token] -> HappyIdentity a
happyError' = HappyIdentity . parseError

parser tks = happyRunIdentity happySomeParser where
  happySomeParser = happyThen (happyParse action_0 tks) (\x -> case x of {HappyAbsSyn4 z -> happyReturn z; _other -> notHappyAtAll })

happySeq = happyDontSeq


removeSep cs =  case span isSpace cs of
			    	(coment,rest) -> rest


filterNoSeparators::[Token]->[Token]
filterNoSeparators (TokenSep:TokenWhere:xs) = filterNoSeparators (TokenWhere:xs)
filterNoSeparators (TokenSep:TokenGuard:xs) = filterNoSeparators (TokenGuard:xs)
filterNoSeparators (x:xs)                   = x:filterNoSeparators xs
filterNoSeparators []                       = []

lexer :: String -> [Token]
lexer cs = filterNoSeparators (basic_lexer cs)


basic_lexer :: String -> [Token]
basic_lexer [] = []
basic_lexer ('-':'-':cs) = basic_lexer (lineComment cs)
basic_lexer ('{':'-':cs) = basic_lexer (blockComment cs)
basic_lexer (':':':':cs) = TokenTypeDef: basic_lexer cs
basic_lexer ('-':'>':cs) = TokenArrow:  basic_lexer cs
basic_lexer ('<':'=':cs) = TokenMineq:  basic_lexer cs
basic_lexer ('|':'|':cs) = TokenOr:  basic_lexer cs
basic_lexer ('&':'&':cs) = TokenOr:  basic_lexer cs
basic_lexer ('>':'=':cs) = TokenMajeq:  basic_lexer cs
basic_lexer ('=':'=':cs) = TokenLEq:  basic_lexer cs
basic_lexer ('!':'=':cs) = TokenNotEq:  basic_lexer cs
basic_lexer ('!':cs) = TokenNot:  basic_lexer cs
basic_lexer ('=':cs) = TokenEq : basic_lexer cs
basic_lexer ('\n':cs) = TokenSep:  basic_lexer cs
basic_lexer ('?':cs) = TokenIfCexp : basic_lexer cs
basic_lexer ('+':cs) = TokenPlus : basic_lexer cs
basic_lexer ('-':cs) = TokenMinus : basic_lexer cs
basic_lexer ('*':cs) = TokenTimes : basic_lexer cs
basic_lexer ('/':cs) = TokenDiv : basic_lexer cs
basic_lexer ('(':cs) = TokenOB : basic_lexer cs
basic_lexer (')':cs) = TokenCB : basic_lexer cs
basic_lexer ('<':cs) = TokenMin: basic_lexer cs
basic_lexer ('>':cs) = TokenMaj: basic_lexer cs
basic_lexer ('\\':cs) = TokenBackSlach: basic_lexer cs
basic_lexer ('%':cs) = TokenMod:basic_lexer cs
basic_lexer ('\'':cs) = TokenBinOp:basic_lexer cs
basic_lexer ('|':cs) = TokenGuard:basic_lexer cs
basic_lexer ('[':cs) = TokenOpenList:basic_lexer cs
basic_lexer (']':cs) = TokenCloseList:basic_lexer cs
basic_lexer (':':cs) = TokenListConstructor:basic_lexer cs
basic_lexer (',':cs) = TokenComma:basic_lexer cs     
basic_lexer ('.':cs) = TokenDot:basic_lexer cs
basic_lexer ('{':cs) = TokenOpenB:basic_lexer cs
basic_lexer ('}':cs) = TokenCloseB:basic_lexer cs
basic_lexer ('@':cs)  = TokenArroba:basic_lexer cs
basic_lexer ('\"':cs) = lexString cs 
basic_lexer (c:cs) 
      | (isSpace c) && c /= '\n' = basic_lexer cs
      | isAlpha c = lexVar (c:cs)
      | isDigit c = lexNum (c:cs)
      | otherwise = basic_lexer cs 

lexString cs = TokenString str : basic_lexer (tail rest)
      				where 
      					(str,rest) = span (/='\"') cs
      					
      					


lexNum cs = TokenInt  num : basic_lexer rest
      where (num,rest) = span isDigit cs

isAlphaOrDigit char = isAlpha char || isDigit char || char =='_'

lexVar cs =
   case span isAlphaOrDigit cs of
	 ("int",rest) -> TokenTypeInt: basic_lexer rest
	 ("bool",rest)-> TokenTypeBool: basic_lexer rest 
	 ("not",rest) -> TokenNot:  basic_lexer rest
	 ("where",rest) -> TokenWhere:  basic_lexer rest
	 ("end",rest)   -> TokenEnd:   basic_lexer rest	 
	 ("if",rest)    -> TokenIf:   basic_lexer rest
	 ("then",rest)  -> TokenThen:   basic_lexer rest
	 ("else",rest)  -> TokenElse:   basic_lexer rest
	 ("otherwise",rest)  -> TokenOtherwise:   basic_lexer rest
	 ("data",rest)  -> TokenData: basic_lexer rest
	 ("true",rest)  -> (TokenBool "true"):  basic_lexer rest
	 ("false",rest) -> (TokenBool "false"):  basic_lexer rest
	 ("True",rest)  -> (TokenBool "true"):  basic_lexer rest
	 ("False",rest) -> (TokenBool "false"):  basic_lexer rest
	 (var,rest)     -> TokenVar var : basic_lexer rest
          
isNotEndLine c = (c /='\n')
lineComment cs =
			   case span isNotEndLine cs of
			    	(coment,rest) ->  rest
 
blockComment ('-':'}':cs) =  cs
blockComment (c:cs) = blockComment cs
blockComment [] =  []
{-# LINE 1 "templates/GenericTemplate.hs" #-}
{-# LINE 1 "templates/GenericTemplate.hs" #-}
{-# LINE 1 "<built-in>" #-}
{-# LINE 1 "<command line>" #-}
{-# LINE 1 "templates/GenericTemplate.hs" #-}
-- Id: GenericTemplate.hs,v 1.26 2005/01/14 14:47:22 simonmar Exp 

{-# LINE 28 "templates/GenericTemplate.hs" #-}








{-# LINE 49 "templates/GenericTemplate.hs" #-}

{-# LINE 59 "templates/GenericTemplate.hs" #-}

{-# LINE 68 "templates/GenericTemplate.hs" #-}

infixr 9 `HappyStk`
data HappyStk a = HappyStk a (HappyStk a)

-----------------------------------------------------------------------------
-- starting the parse

happyParse start_state = happyNewToken start_state notHappyAtAll notHappyAtAll

-----------------------------------------------------------------------------
-- Accepting the parse

-- If the current token is (1), it means we've just accepted a partial
-- parse (a %partial parser).  We must ignore the saved token on the top of
-- the stack in this case.
happyAccept (1) tk st sts (_ `HappyStk` ans `HappyStk` _) =
	happyReturn1 ans
happyAccept j tk st sts (HappyStk ans _) = 
	 (happyReturn1 ans)

-----------------------------------------------------------------------------
-- Arrays only: do the next action

{-# LINE 155 "templates/GenericTemplate.hs" #-}

-----------------------------------------------------------------------------
-- HappyState data type (not arrays)



newtype HappyState b c = HappyState
        (Int ->                    -- token number
         Int ->                    -- token number (yes, again)
         b ->                           -- token semantic value
         HappyState b c ->              -- current state
         [HappyState b c] ->            -- state stack
         c)



-----------------------------------------------------------------------------
-- Shifting a token

happyShift new_state (1) tk st sts stk@(x `HappyStk` _) =
     let i = (case x of { HappyErrorToken (i) -> i }) in
--     trace "shifting the error token" $
     new_state i i tk (HappyState (new_state)) ((st):(sts)) (stk)

happyShift new_state i tk st sts stk =
     happyNewToken new_state ((st):(sts)) ((HappyTerminal (tk))`HappyStk`stk)

-- happyReduce is specialised for the common cases.

happySpecReduce_0 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_0 nt fn j tk st@((HappyState (action))) sts stk
     = action nt j tk st ((st):(sts)) (fn `HappyStk` stk)

happySpecReduce_1 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_1 nt fn j tk _ sts@(((st@(HappyState (action))):(_))) (v1`HappyStk`stk')
     = let r = fn v1 in
       happySeq r (action nt j tk st sts (r `HappyStk` stk'))

happySpecReduce_2 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_2 nt fn j tk _ ((_):(sts@(((st@(HappyState (action))):(_))))) (v1`HappyStk`v2`HappyStk`stk')
     = let r = fn v1 v2 in
       happySeq r (action nt j tk st sts (r `HappyStk` stk'))

happySpecReduce_3 i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happySpecReduce_3 nt fn j tk _ ((_):(((_):(sts@(((st@(HappyState (action))):(_))))))) (v1`HappyStk`v2`HappyStk`v3`HappyStk`stk')
     = let r = fn v1 v2 v3 in
       happySeq r (action nt j tk st sts (r `HappyStk` stk'))

happyReduce k i fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happyReduce k nt fn j tk st sts stk
     = case happyDrop (k - ((1) :: Int)) sts of
	 sts1@(((st1@(HappyState (action))):(_))) ->
        	let r = fn stk in  -- it doesn't hurt to always seq here...
       		happyDoSeq r (action nt j tk st1 sts1 r)

happyMonadReduce k nt fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happyMonadReduce k nt fn j tk st sts stk =
        happyThen1 (fn stk tk) (\r -> action nt j tk st1 sts1 (r `HappyStk` drop_stk))
       where sts1@(((st1@(HappyState (action))):(_))) = happyDrop k ((st):(sts))
             drop_stk = happyDropStk k stk

happyMonad2Reduce k nt fn (1) tk st sts stk
     = happyFail (1) tk st sts stk
happyMonad2Reduce k nt fn j tk st sts stk =
       happyThen1 (fn stk tk) (\r -> happyNewToken new_state sts1 (r `HappyStk` drop_stk))
       where sts1@(((st1@(HappyState (action))):(_))) = happyDrop k ((st):(sts))
             drop_stk = happyDropStk k stk





             new_state = action


happyDrop (0) l = l
happyDrop n ((_):(t)) = happyDrop (n - ((1) :: Int)) t

happyDropStk (0) l = l
happyDropStk n (x `HappyStk` xs) = happyDropStk (n - ((1)::Int)) xs

-----------------------------------------------------------------------------
-- Moving to a new state after a reduction

{-# LINE 253 "templates/GenericTemplate.hs" #-}
happyGoto action j tk st = action j j tk (HappyState action)


-----------------------------------------------------------------------------
-- Error recovery ((1) is the error token)

-- parse error if we are in recovery and we fail again
happyFail  (1) tk old_st _ stk =
--	trace "failing" $ 
    	happyError_ tk

{-  We don't need state discarding for our restricted implementation of
    "error".  In fact, it can cause some bogus parses, so I've disabled it
    for now --SDM

-- discard a state
happyFail  (1) tk old_st (((HappyState (action))):(sts)) 
						(saved_tok `HappyStk` _ `HappyStk` stk) =
--	trace ("discarding state, depth " ++ show (length stk))  $
	action (1) (1) tk (HappyState (action)) sts ((saved_tok`HappyStk`stk))
-}

-- Enter error recovery: generate an error token,
--                       save the old token and carry on.
happyFail  i tk (HappyState (action)) sts stk =
--      trace "entering error recovery" $
	action (1) (1) tk (HappyState (action)) sts ( (HappyErrorToken (i)) `HappyStk` stk)

-- Internal happy errors:

notHappyAtAll = error "Internal Happy error\n"

-----------------------------------------------------------------------------
-- Hack to get the typechecker to accept our action functions







-----------------------------------------------------------------------------
-- Seq-ing.  If the --strict flag is given, then Happy emits 
--	happySeq = happyDoSeq
-- otherwise it emits
-- 	happySeq = happyDontSeq

happyDoSeq, happyDontSeq :: a -> b -> b
happyDoSeq   a b = a `seq` b
happyDontSeq a b = b

-----------------------------------------------------------------------------
-- Don't inline any functions from the template.  GHC has a nasty habit
-- of deciding to inline happyGoto everywhere, which increases the size of
-- the generated parser quite a bit.

{-# LINE 317 "templates/GenericTemplate.hs" #-}
{-# NOINLINE happyShift #-}
{-# NOINLINE happySpecReduce_0 #-}
{-# NOINLINE happySpecReduce_1 #-}
{-# NOINLINE happySpecReduce_2 #-}
{-# NOINLINE happySpecReduce_3 #-}
{-# NOINLINE happyReduce #-}
{-# NOINLINE happyMonadReduce #-}
{-# NOINLINE happyGoto #-}
{-# NOINLINE happyFail #-}

-- end of Happy Template.
